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
+39
View File
@@ -0,0 +1,39 @@
{
boot.loader.grub = {
enable = true;
zfsSupport = true;
efiSupport = true;
efiInstallAsRemovable = true;
mirroredBoots = [
{
devices = [ "nodev" ];
path = "/boot";
}
];
};
fileSystems."/" = {
device = "zpool/root";
fsType = "zfs";
};
fileSystems."/nix" = {
device = "zpool/nix";
fsType = "zfs";
};
fileSystems."/var" = {
device = "zpool/var";
fsType = "zfs";
};
fileSystems."/home" = {
device = "zpool/home";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/FCFD-4472";
fsType = "vfat";
};
boot.zfs.forceImportRoot = false;
swapDevices = [ ];
}
+5 -2
View File
@@ -5,8 +5,6 @@
{
imports = [
./hardware-configuration.nix
./packages.nix
../../modules/nixos/server
../../modules/nixos/git.nix
../../modules/sops.nix
@@ -27,6 +25,11 @@
fsType = "ext4";
};
services.zfs = {
autoSnapshot.enable = true;
autoScrub.enable = true;
};
networking.hostId = "6054e036";
networking.hostName = "nixos-music";
networking.networkmanager.enable = true;
+8
View File
@@ -0,0 +1,8 @@
{
imports = [
./boot.nix
./packages.nix
./configuration.nix
./hardware-configuration.nix
];
}