more refactoring to make hosts more consistent

This commit is contained in:
2026-11-08 15:38:41 +01:00
parent c5bb5cc965
commit 235a72f035
13 changed files with 140 additions and 115 deletions
-51
View File
@@ -5,60 +5,9 @@
{
imports = [
./hardware-configuration.nix
./packages.nix
../../modules/nixos/git.nix
];
networking.hostId = "798c7c92";
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
boot.initrd.availableKernelModules = [
"virtio_pci"
"virtio_blk"
"virtio_scsi"
];
boot.zfs.forceImportRoot = false;
boot.zfs.devNodes = "/dev/disk/by-path";
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub = {
enable = true;
zfsSupport = true;
efiSupport = true;
efiInstallAsRemovable = true;
mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot";
}
];
};
fileSystems."/" = {
device = "zpool/root";
fsType = "zfs";
};
fileSystems."/home" = {
device = "zpool/home";
fsType = "zfs";
};
fileSystems."/var" = {
device = "zpool/var";
fsType = "zfs";
};
fileSystems."/nix" = {
device = "zpool/nix";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8FA8-69C2";
fsType = "vfat";
};
swapDevices = [ ];
# networking.hostName = "nixos"; # Define your hostname.