From 57ded1cfdfa3a3d9ac511ca8cc936983428267c5 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 20 Jun 2018 13:28:04 +0200 Subject: Split host-specific configuration Managed using "host/current.nix" symlink. --- host/hardware/asterix.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 host/hardware/asterix.nix (limited to 'host/hardware/asterix.nix') diff --git a/host/hardware/asterix.nix b/host/hardware/asterix.nix new file mode 100644 index 0000000..a0412d5 --- /dev/null +++ b/host/hardware/asterix.nix @@ -0,0 +1,31 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2f564c2d-d300-4712-a578-1cd77fcaa40d"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/ded323eb-84de-4ff5-8570-8f50e93a862e"; + fsType = "ext2"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/79b17f7c-a47e-45ea-b755-d05065a05734"; } + ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} -- cgit v1.2.3