diff options
author | tv <tv@shackspace.de> | 2015-07-07 06:20:50 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-07 06:20:50 +0200 |
commit | 0e3cf4d393fdba9fecd3548f55507f9f2d46aaf5 (patch) | |
tree | 051da7735a888a3afebee713eee01254554b005b /modules/nomic/hardware-configuration.nix | |
parent | 36d7524038b4090dc7f734bfc57cc2508dd8e8b4 (diff) |
host nomic: init
Diffstat (limited to 'modules/nomic/hardware-configuration.nix')
-rw-r--r-- | modules/nomic/hardware-configuration.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/nomic/hardware-configuration.nix b/modules/nomic/hardware-configuration.nix new file mode 100644 index 000000000..8a00730f1 --- /dev/null +++ b/modules/nomic/hardware-configuration.nix @@ -0,0 +1,49 @@ +{ config, ... }: + +{ + boot.initrd.luks = { + cryptoModules = [ "aes" "sha1" "xts" ]; + devices = [ + { + name = "luks1"; + device = "/dev/disk/by-uuid/cac73902-1023-4906-8e95-3a8b245337d4"; + } + ]; + }; + + boot.initrd.availableKernelModules = [ "ahci" ]; + boot.kernelModules = [ "kvm-intel" "wl" ]; + boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; + + boot.loader.grub = { + device = "/dev/sda"; + splashImage = null; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/de4780fc-0473-4708-81df-299b7383274c"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/be3a1d80-3157-4d7c-86cc-ef01b64eff5e"; + fsType = "ext4"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/9db9c8ff-51da-4cbd-9f0a-0cd3333bbaff"; + fsType = "btrfs"; + }; + + swapDevices = [ ]; + + nix = { + buildCores = 2; + maxJobs = 2; + daemonIONiceLevel = 1; + daemonNiceLevel = 1; + }; + + # For config.boot.kernelPackages.broadcom_sta + nixpkgs.config.allowUnfree = true; +} |