2022-09-25 23:38:57 +03: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.
|
2024-05-26 00:21:41 +03:00
|
|
|
|
{ config, lib, modulesPath, ... }:
|
2022-09-25 23:38:57 +03:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
2024-05-26 00:21:41 +03:00
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
2022-09-25 23:38:57 +03:00
|
|
|
|
|
2024-05-26 00:21:41 +03:00
|
|
|
|
boot.initrd = {
|
|
|
|
|
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
|
kernelModules = [ ];
|
|
|
|
|
luks.devices."luksroot".device = "/dev/disk/by-uuid/eb896c1c-f012-412e-86bd-48f663377129";
|
2022-09-25 23:38:57 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
2024-05-26 00:21:41 +03:00
|
|
|
|
device = "/dev/disk/by-uuid/45a33b08-0a15-4b47-9d8a-c58b7d62066a";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=root" "compress=zstd" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/persistent" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/45a33b08-0a15-4b47-9d8a-c58b7d62066a";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=persistent" "compress=zstd" ];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/nix" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/45a33b08-0a15-4b47-9d8a-c58b7d62066a";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=nix" "compress=zstd" "noatime" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/.swapvol" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/45a33b08-0a15-4b47-9d8a-c58b7d62066a";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = [ "subvol=swap" "noatime" ];
|
2022-09-25 23:38:57 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/boot" = {
|
2024-05-26 00:21:41 +03:00
|
|
|
|
device = "/dev/disk/by-uuid/94EE-CA0D";
|
2022-09-25 23:38:57 +03:00
|
|
|
|
fsType = "vfat";
|
2024-05-26 00:21:41 +03:00
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
2022-09-25 23:38:57 +03:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-05-26 00:21:41 +03:00
|
|
|
|
swapDevices = [{ device = "/.swapvol/swapfile"; }];
|
2022-09-25 23:38:57 +03:00
|
|
|
|
|
|
|
|
|
# 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.enp3s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
2024-05-26 00:21:41 +03:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2022-09-25 23:38:57 +03:00
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|