From aaadfa6e71508028eabc90d9589cec03ab5caa08 Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 17 Sep 2025 11:41:22 +0300 Subject: [PATCH] 123 --- nixosConfigurations/hosts/hardware/mini-pc.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixosConfigurations/hosts/hardware/mini-pc.nix b/nixosConfigurations/hosts/hardware/mini-pc.nix index a422505..f589554 100755 --- a/nixosConfigurations/hosts/hardware/mini-pc.nix +++ b/nixosConfigurations/hosts/hardware/mini-pc.nix @@ -6,6 +6,7 @@ lib, pkgs, modulesPath, + xlib, ... }: @@ -58,11 +59,11 @@ fileSystems = { "/" = { - device = "/dev/disk/by-partlabel/disk-main-root"; + device = "/dev/disk/by-partlabel/disk-${xlib.device.hostname}-root"; fsType = "ext4"; }; "/boot" = { - device = "/dev/disk/by-partlabel/disk-main-ESP"; + device = "/dev/disk/by-partlabel/${xlib.device.hostname}"; fsType = "vfat"; options = [ "fmask=0077" @@ -72,7 +73,7 @@ }; swapDevices = [ - { device = "/dev/disk/by-partlabel/disk-main-swap"; } + { device = "/dev/disk/by-partlabel/disk-${xlib.device.hostname}-swap"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking