summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-02-20 20:34:09 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-02-20 20:34:09 -0500
commit233cc970b3f9104ddaea4a3e1046df7038fba5ff (patch)
treea44b3e4b371b0173e0977ae497e420ba5b894c04 /machines
parent4fc459d19e37406975162637e1fad9e50bfb61a3 (diff)
Add flake with unstable packages
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;
}