diff --git a/hosts/uConsole/hardware-configuration.nix b/hosts/uConsole/hardware-configuration.nix index c69782b..bc20524 100644 --- a/hosts/uConsole/hardware-configuration.nix +++ b/hosts/uConsole/hardware-configuration.nix @@ -9,21 +9,23 @@ boot.initrd.kernelModules = [ ]; boot.extraModulePackages = [ ]; - # uConsole CM5 eMMC partitions managed by disko - # Labels defined in disko-config.nix - fileSystems."/" = { + # Filesystems for NixOS install. + # mkForce overrides disko's auto-generated paths so we can use + # filesystem labels (by-label) which work with loop device installs. + # Disko will set its own paths when nixos-anywhere is used. + fileSystems."/" = lib.mkForce { device = "/dev/disk/by-label/NIXOS_UCM5"; fsType = "ext4"; options = [ "noatime" ]; }; - fileSystems."/boot/firmware" = { + fileSystems."/boot/firmware" = lib.mkForce { device = "/dev/disk/by-label/FIRMWARE"; fsType = "vfat"; - options = lib.mkForce [ "fmask=0022" "dmask=0022" ]; + options = [ "fmask=0022" "dmask=0022" ]; }; - fileSystems."/home" = { + fileSystems."/home" = lib.mkForce { device = "/dev/disk/by-label/NIXOS_HOME"; fsType = "ext4"; options = [ "noatime" ];