summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/dragon.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix
index b613998..0baccad 100644
--- a/machines/dragon.nix
+++ b/machines/dragon.nix
@@ -131,4 +131,21 @@ in
};
system.stateVersion = lib.mkForce "17.09";
+
+ # hardware-configuration.nix
+ boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "uhci_hcd" "xhci_pci" "usb_storage" "sd_mod" ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKEXU9X-part3";
+ fsType = "btrfs";
+ options = [ "subvol=system/dragon-nixos,device=/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKHV0LS-part3,device=/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKEXU9X-part3,degraded" ];
+ };
+
+ swapDevices = [ ];
+
+ nix.maxJobs = lib.mkDefault 8;
+ powerManagement.cpuFreqGovernor = "ondemand";
+ hardware.enableRedistributableFirmware = lib.mkDefault true;
}