61 lines
1.6 KiB
Nix
61 lines
1.6 KiB
Nix
|
# 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, ... }:
|
|||
|
|
|||
|
{
|
|||
|
nix.maxJobs = 2;
|
|||
|
nix.buildCores = 4;
|
|||
|
|
|||
|
hardware.enableAllFirmware = true;
|
|||
|
|
|||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" ];
|
|||
|
boot.kernelModules = [ "kvm-intel" ];
|
|||
|
boot.extraModulePackages = [ ];
|
|||
|
|
|||
|
fileSystems."/" = { device = "/dev/disk/by-uuid/be9be32e-1fb0-45c3-9714-390ee2e6c184";
|
|||
|
fsType = "btrfs";
|
|||
|
options = [
|
|||
|
"defaults"
|
|||
|
"compress=lzo"
|
|||
|
"discard"
|
|||
|
"subvol=nixos"
|
|||
|
];
|
|||
|
};
|
|||
|
fileSystems."/home" = { device = "/dev/disk/by-uuid/be9be32e-1fb0-45c3-9714-390ee2e6c184";
|
|||
|
fsType = "btrfs";
|
|||
|
options = [
|
|||
|
"defaults"
|
|||
|
"compress=lzo"
|
|||
|
"discard"
|
|||
|
"subvol=home"
|
|||
|
];
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/lib/rkt" = {
|
|||
|
fsType = "tmpfs";
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/var/lib/cni" = {
|
|||
|
fsType = "tmpfs";
|
|||
|
};
|
|||
|
|
|||
|
swapDevices = [ ];
|
|||
|
|
|||
|
# Define on which hard drive you want to install Grub.
|
|||
|
boot.loader.grub.device = "/dev/sda";
|
|||
|
|
|||
|
boot.initrd.luks.devices = [ {
|
|||
|
# name = "luksSSD2";
|
|||
|
# device = "/dev/disk/by-partuuid/bbcb4838-1f05-4c1a-b014-947d2e536b14";
|
|||
|
# preLVM = true;
|
|||
|
# allowDiscards = true;
|
|||
|
# } {
|
|||
|
name = "luksSSD1";
|
|||
|
device = "/dev/disk/by-uuid/2274dc28-7a48-4355-bc27-2d73f7a2744e";
|
|||
|
preLVM = false;
|
|||
|
allowDiscards = true;
|
|||
|
}
|
|||
|
];
|
|||
|
}
|