mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
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, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
boot.resumeDevice = "/dev/disk/by-uuid/df77a3e1-be33-45ba-a182-4b6da2caf162";
|
||
boot.kernelParams = [
|
||
"resume_offset=2017177"
|
||
];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/mapper/cryproot";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=root" ];
|
||
};
|
||
|
||
boot.initrd.luks.devices."cryproot".device = "/dev/disk/by-uuid/e667143a-7965-4f53-bf2b-e91a3c9c4c13";
|
||
|
||
fileSystems."/home" =
|
||
{ device = "/dev/mapper/cryproot";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" ];
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "/dev/mapper/cryproot";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" ];
|
||
};
|
||
|
||
fileSystems."/swap" =
|
||
{ device = "/dev/mapper/cryproot";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=swap" ];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/AB4A-C5EA";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices = [
|
||
{
|
||
device = "/swap/swapfile";
|
||
}
|
||
];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|