Serge Bazanski | 6abe4fa | 2020-10-03 00:18:34 +0200 | [diff] [blame] | 1 | # Hardware configuration of edge01. Generated by nixos-generate-config. |
| 2 | |
| 3 | { config, lib, pkgs, modulesPath, ... }: |
| 4 | |
| 5 | { |
| 6 | imports = |
| 7 | [ (modulesPath + "/installer/scan/not-detected.nix") |
| 8 | ]; |
| 9 | |
| 10 | boot.initrd.availableKernelModules = [ "ahci" "usb_storage" "usbhid" ]; |
| 11 | boot.initrd.kernelModules = [ "dm-snapshot" ]; |
| 12 | boot.kernelModules = [ "kvm-intel" ]; |
| 13 | boot.extraModulePackages = [ ]; |
| 14 | system.stateVersion = "20.03"; |
| 15 | boot.loader.systemd-boot.enable = true; |
| 16 | boot.loader.efi.canTouchEfiVariables = true; |
| 17 | |
| 18 | |
| 19 | fileSystems."/" = |
| 20 | { device = "/dev/disk/by-uuid/b1b85556-8f3b-4695-8ad5-2159c93c76de"; |
| 21 | fsType = "ext4"; |
| 22 | }; |
| 23 | |
| 24 | fileSystems."/boot" = |
| 25 | # Pendrive. |
| 26 | # Real boot is at D8BA-345D. |
| 27 | { device = "/dev/disk/by-uuid/D8BA-345D"; |
| 28 | fsType = "vfat"; |
| 29 | }; |
Bartosz Stebel | c726798 | 2020-12-10 15:38:29 +0100 | [diff] [blame] | 30 | hscloud.anchorvm.blkdev = "/dev/janusz-vg/ripeanchor"; |
Serge Bazanski | 6abe4fa | 2020-10-03 00:18:34 +0200 | [diff] [blame] | 31 | |
| 32 | swapDevices = |
| 33 | [ { device = "/dev/disk/by-uuid/5dadcff4-fcd4-4e8d-81f6-be68fb630396"; } |
| 34 | ]; |
| 35 | |
| 36 | powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; |
| 37 | } |