2023-10-12 00:27:24 +05:30
|
|
|
|
# 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,
|
2023-11-06 15:54:00 +05:30
|
|
|
|
pkgs,
|
2023-10-12 00:27:24 +05:30
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
|
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
|
extraModulePackages = [];
|
|
|
|
|
initrd = {
|
|
|
|
|
availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod"];
|
|
|
|
|
kernelModules = [];
|
|
|
|
|
luks.devices."cryptroot".device = "/dev/disk/by-uuid/312b4d84-64dc-4721-9be3-bb0148199b16";
|
|
|
|
|
};
|
|
|
|
|
kernelModules = ["kvm-intel" "iwlwifi"];
|
2023-11-10 12:24:25 +05:30
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2023-10-12 00:27:24 +05:30
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
loader = {
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@"];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@home"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/.snapshots" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@snapshots"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/var/log" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@log"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/var/cache" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@cache"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/etc/nixos" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@nix-config"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/nix" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/d5c21883-f0e6-4e7a-b9a5-ee0bf4780ec5";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["defaults" "compress-force=zstd" "noatime" "ssd" "subvol=@nix-store"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/90A5-35FF";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [];
|
|
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
|
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
bluetooth.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
|
|
virtualisation.docker.storageDriver = "btrfs";
|
|
|
|
|
}
|