From 6dcb863a291bb2152fd0ecb2c9f43a7aefcedd33 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 23 Jan 2019 22:01:21 +0100 Subject: Add work laptop config Switching machines using NixOS is as simple as it gets. Seriously. This is amazing. --- host/hardware/athena.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 host/hardware/athena.nix (limited to 'host/hardware') diff --git a/host/hardware/athena.nix b/host/hardware/athena.nix new file mode 100644 index 0000000..0682645 --- /dev/null +++ b/host/hardware/athena.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 = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a382b969-52d6-4946-ae8a-5da3f612410c"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/CC5B-E0DA"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/96edaf95-23ce-4859-b82f-048711d2a8d2"; } + ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} -- cgit v1.2.3