forked from zentralwerk/network
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{ config, ... }:
|
|
|
|
{
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.version = 2;
|
|
boot.loader.grub.devices = [
|
|
"/dev/disk/by-path/pci-0000:05:00.0-scsi-0:1:0:0"
|
|
"/dev/disk/by-path/pci-0000:05:00.0-scsi-0:1:0:1"
|
|
];
|
|
|
|
networking.hostName = "server1"; # Define your hostname.
|
|
networking.hostId = "12345678";
|
|
|
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "hpsa" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
nixpkgs.config.allowBroken = true;
|
|
boot.zfs.enableUnstable = true;
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.initrd.supportedFilesystems = [ "zfs" ];
|
|
# Required for Broadcom NICs
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
fileSystems."/" =
|
|
{ device = "server1/root";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/var" =
|
|
{ device = "server1/root/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix" =
|
|
{ device = "server1/root/nix";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix/store" =
|
|
{ device = "server1/root/nix/store";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/nix/var" =
|
|
{ device = "server1/root/nix/var";
|
|
fsType = "zfs";
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-label/ESP;
|
|
fsType = "ext2";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
}
|