150 lines
3.3 KiB
Nix
150 lines
3.3 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,
|
||
modulesPath,
|
||
...
|
||
}:
|
||
|
||
{
|
||
imports = [
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"xhci_pci"
|
||
"ehci_pci"
|
||
"ahci"
|
||
"nvme"
|
||
"usbhid"
|
||
"usb_storage"
|
||
"sd_mod"
|
||
];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
boot.initrd.luks.devices."rootfs".device = "/dev/disk/by-uuid/77601e4d-358d-49ba-b6e5-f3a68f05060a";
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/9EF7-6EB2";
|
||
fsType = "vfat";
|
||
options = [
|
||
"fmask=0077"
|
||
"dmask=0077"
|
||
];
|
||
};
|
||
|
||
fileSystems."/games" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@games"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@home"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@nix"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
fileSystems."/root" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@root"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
fileSystems."/var" = {
|
||
device = "/dev/disk/by-uuid/2271e57f-0b57-4ab7-8238-b84b01974cc8";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"subvol=@var"
|
||
"defaults"
|
||
"ssd"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
"nodiscard"
|
||
];
|
||
};
|
||
|
||
environment.etc."crypttab".text = ''
|
||
datafs UUID=5ca962a7-537f-46ce-ba50-9cc9cefd012b /etc/lukskey
|
||
'';
|
||
|
||
fileSystems."/data" = {
|
||
device = "/dev/disk/by-uuid/a8ea6a7b-3733-40d8-bee8-45806aaacfe1";
|
||
fsType = "btrfs";
|
||
options = [
|
||
"defaults"
|
||
"compress=zstd"
|
||
"autodefrag"
|
||
"noatime"
|
||
];
|
||
};
|
||
swapDevices = [ ];
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|