# 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.loader = { grub = { enable = true; version = 2; copyKernels = true; # efiSupport = true; devices = [ "/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF340110R" ]; /* mirroredBoots = [ { devices = [ "${disk_id}" ]; path = "/boot${bootnum}"; } ]; */ }; /* efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot/efi"; efiInstallAsRemovable = false; }; */ }; boot.initrd = { availableKernelModules = [ "ehci_pci" "ahci" "uas" "sd_mod" # Made the AES modules available at initrd, # to speedup the deciphering of the root. "aes_x86_64" "aesni_intel" "cryptd" ]; kernelModules = [ ]; }; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; boot.kernelParams = [ "gfxpayload=text" "console=tty0" "console=ttyS0,115200n8" # DEBUG: "boot.shell_on_fail" ]; boot.kernel = { sysctl = { "vm.swappiness" = 10; "vm.vfs_cache_pressure" = 50; }; }; # Clean /tmp automatically on boot. boot.cleanTmpDir = true; fileSystems."/" = { device = "rpool/root"; fsType = "zfs"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/dc3c5387-17d2-43b3-bfa2-bf73afacca07"; fsType = "ext2"; }; /* { device = "bpool/boot"; fsType = "zfs"; }; */ fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/62E6-E65F"; fsType = "vfat"; }; fileSystems."/home" = { device = "rpool/home"; fsType = "zfs"; }; fileSystems."/nix" = { device = "rpool/nix"; fsType = "zfs"; }; fileSystems."/nix/var" = { device = "rpool/nix/var"; fsType = "zfs"; }; fileSystems."/var" = { device = "rpool/var"; fsType = "zfs"; }; fileSystems."/var/cache" = { device = "rpool/var/cache"; fsType = "zfs"; }; fileSystems."/var/log" = { device = "rpool/var/log"; fsType = "zfs"; }; fileSystems."/var/mail" = { device = "rpool/var/mail"; fsType = "zfs"; }; fileSystems."/var/tmp" = { device = "rpool/var/tmp"; fsType = "zfs"; }; fileSystems."/var/www" = { device = "rpool/var/www"; fsType = "zfs"; }; swapDevices = [ { device = "/dev/disk/by-partuuid/6b1eaa35-776b-4e60-b21e-7bcee535dd8b"; randomEncryption = { enable = true; cipher = "aes-xts-plain64"; source = "/dev/urandom"; }; } ]; nix.maxJobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; }