refactored
This commit is contained in:
parent
5d72d0aba9
commit
abaac8e512
|
@ -36,19 +36,27 @@
|
|||
|
||||
this.systems.zfs.enable = true;
|
||||
|
||||
networking = {
|
||||
# This is required for the zfs module as well. Must be unique. Run the following head -c4 /dev/urandom | od -A none -t x4
|
||||
networking.hostId = "a7a1c3f5";
|
||||
networking.hostName = "nil"; # Define your hostname.
|
||||
hostId = "a7a1c3f5";
|
||||
hostName = "nil"; # Define your hostname.
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.enp2s0f0.useDHCP = true;
|
||||
networking.interfaces.enp5s0.useDHCP = true;
|
||||
networking.interfaces.wlp3s0.useDHCP = true;
|
||||
useDHCP = false;
|
||||
interfaces = {
|
||||
enp2s0f0.useDHCP = true;
|
||||
enp5s0.useDHCP = true;
|
||||
wlp3s0.useDHCP = true;
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
hardware.firmware = [ pkgs.rtw89-firmware ];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"nvme"
|
||||
"vfat"
|
||||
"xhci_pci"
|
||||
|
@ -58,33 +66,32 @@
|
|||
"sdhci_pci"
|
||||
"cryptd"
|
||||
];
|
||||
|
||||
hardware.firmware = [ pkgs.rtw89-firmware ];
|
||||
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.rtw89 ];
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
kernelModules = [ "dm-snapshot" ];
|
||||
};
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
extraModulePackages = [ config.boot.kernelPackages.rtw89 ];
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."crypt" = {
|
||||
device = "/dev/disk/by-partlabel/crypt";
|
||||
preLVM = true;
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "rpool/root/nixos";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
"/home" = {
|
||||
device = "rpool/home";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-partlabel/boot";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{ device = "/dev/partitions/swap"; }];
|
||||
|
||||
|
|
Reference in New Issue
Block a user