2020-02-07 03:52:17 +04:00
|
|
|
|
# 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.
|
2020-08-06 23:34:37 +04:00
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
2020-08-06 23:34:37 +04:00
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2020-09-08 03:07:50 +04:00
|
|
|
|
{ device = "rpool/system/root";
|
|
|
|
|
fsType = "zfs";
|
2020-02-07 03:52:17 +04:00
|
|
|
|
};
|
|
|
|
|
|
2020-09-08 03:07:50 +04:00
|
|
|
|
fileSystems."/nix" =
|
|
|
|
|
{ device = "rpool/local/nix";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/var" =
|
|
|
|
|
{ device = "rpool/system/var";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
|
|
|
|
{ device = "rpool/user/home";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/bittorrent" =
|
|
|
|
|
{ device = "rpool/local/bittorrent";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
};
|
2020-08-06 23:34:37 +04:00
|
|
|
|
|
2020-02-07 03:52:17 +04:00
|
|
|
|
fileSystems."/boot" =
|
2020-11-17 01:59:51 +04:00
|
|
|
|
{ device = "/dev/disk/by-uuid/2FA1-8DA6";
|
2020-02-07 03:52:17 +04:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
2020-08-06 23:34:37 +04:00
|
|
|
|
swapDevices = [
|
|
|
|
|
{
|
2020-11-17 01:59:51 +04:00
|
|
|
|
device = "/dev/disk/by-partuuid/96ef04e6-4537-453c-a75d-f4184fe9a54e";
|
2020-08-06 23:34:37 +04:00
|
|
|
|
randomEncryption.enable = true;
|
|
|
|
|
}
|
|
|
|
|
];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2020-11-17 01:59:51 +04:00
|
|
|
|
networking.hostId = "7c725ef4";
|
|
|
|
|
boot.zfs.devNodes = "/dev/disk/by-partuuid/69b0df60-36a2-4aa3-864b-d17cf95e6387";
|
2020-09-08 03:07:50 +04:00
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
2020-09-26 03:33:55 +04:00
|
|
|
|
boot.kernelParams = [ "zfs.zfs_arc_max=4294967296" ];
|
2020-02-07 03:52:17 +04:00
|
|
|
|
}
|