_: { # New host: copy this file to hosts/.nix. Replace fileSystems/boot # below with the real hardware (see hosts/server-n0.nix for a bigger # example). Add a containers// directory for its containers. module = { lib, hostInfo, ... }: { networking.hostName = hostInfo.hostname; fileSystems."/" = { device = "/dev/disk/by-label/NIXOS_ROOT"; fsType = "ext4"; }; fileSystems."/persist" = { device = "/dev/disk/by-label/NIXOS_PERSIST"; fsType = "ext4"; }; fileSystems."/nix" = { device = "/dev/disk/by-label/NIXOS_NIX"; fsType = "ext4"; }; fileSystems."/var/log" = { device = "/dev/disk/by-label/NIXOS_VARLOG"; fsType = "ext4"; neededForBoot = true; }; boot.loader.grub.device = "nodev"; boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }; }