mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
75 lines
2.3 KiB
Nix
75 lines
2.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" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.initrd.systemd.enable = true;
|
||
boot.initrd.luks.devices."luksroot" = {
|
||
device = "/dev/disk/by-uuid/6b89181c-71e0-4e84-8523-2456d3e28400";
|
||
allowDiscards = true;
|
||
};
|
||
boot.initrd.luks.devices."luksswap" = {
|
||
device = "/dev/disk/by-uuid/4a5fd2d9-1b37-4895-a24b-835a9cd4063e";
|
||
};
|
||
|
||
fileSystems."/" =
|
||
{
|
||
device = "tmpfs";
|
||
fsType = "tmpfs";
|
||
options = [ "size=3G" "mode=755" ];
|
||
};
|
||
|
||
|
||
fileSystems."/home" =
|
||
{
|
||
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" "compress=zstd" "discard=async" "noatime" ];
|
||
};
|
||
|
||
fileSystems."/var/lib" =
|
||
{
|
||
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=lib" "compress=zstd" "discard=async" "noatime" ];
|
||
};
|
||
|
||
fileSystems."/var/log" =
|
||
{
|
||
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=log" "compress=zstd" "discard=async" "noatime" ];
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{
|
||
device = "/dev/disk/by-uuid/3d44cde5-17a2-4023-b9ae-3a02ae68aa81";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" "compress=zstd" "discard=async" "noatime" ];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{
|
||
device = "/dev/disk/by-uuid/B174-4DAE";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
swapDevices =
|
||
[{ device = "/dev/disk/by-uuid/1dd20f07-877c-4ee5-bef5-5e8c6ebe7927"; }];
|
||
boot.resumeDevice = "/dev/disk/by-uuid/1dd20f07-877c-4ee5-bef5-5e8c6ebe7927";
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|