network/nix/nixos-module/server/server2.nix

47 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2022-03-22 18:13:17 +01:00
{ ... }:
2021-04-04 21:59:17 +02:00
{
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
nixpkgs.config.allowBroken = true;
boot.zfs.enableUnstable = true;
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
2021-04-04 21:59:17 +02:00
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "server2/root";
fsType = "zfs";
};
fileSystems."/var" =
{ device = "server2/root/var";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "server2/root/nix";
fsType = "zfs";
};
fileSystems."/nix/store" =
{ device = "server2/root/nix/store";
fsType = "zfs";
};
fileSystems."/nix/var" =
{ device = "server2/root/nix/var";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/29BF-1E56";
fsType = "vfat";
};
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "server2"; # Define your hostname.
networking.hostId = "52525252";
}