From c884d03229198d913423e24884ad0f5f988ce14b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 5 Jun 2018 22:14:33 -0700 Subject: [PATCH] [NixOS] Add uber-loaner nix file --- nixos/machines/uber-loaner.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 nixos/machines/uber-loaner.nix diff --git a/nixos/machines/uber-loaner.nix b/nixos/machines/uber-loaner.nix new file mode 100644 index 00000000..2188b325 --- /dev/null +++ b/nixos/machines/uber-loaner.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + + ../configuration.nix + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2958f04b-8387-4a0c-abc1-f12036c53581"; + fsType = "ext4"; + }; + + fileSystems."/tmp" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +}