2023-09-26 18:21:57 +02: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.
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
2023-09-26 20:13:18 +02:00
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ];
|
2023-09-26 18:21:57 +02:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
{ device = "/dev/disk/by-uuid/b02e7bc6-62e0-46b5-8d5f-869b464c4491";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."luks-3d974bd0-f373-469b-8e9c-2d5516e9f0f5".device = "/dev/disk/by-uuid/3d974bd0-f373-469b-8e9c-2d5516e9f0f5";
|
|
|
|
|
2023-09-27 11:58:21 +02:00
|
|
|
fileSystems."/swap" =
|
|
|
|
{ device = "/dev/disk/by-uuid/b02e7bc6-62e0-46b5-8d5f-869b464c4491";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@swap" ];
|
|
|
|
};
|
|
|
|
|
2023-09-26 18:21:57 +02:00
|
|
|
fileSystems."/boot" =
|
|
|
|
{ device = "/dev/disk/by-uuid/072E-897D";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2023-09-27 11:58:21 +02:00
|
|
|
fileSystems."/mnt/data" =
|
|
|
|
{ device = "/dev/disk/by-uuid/c385a436-0288-486f-a2b9-c64c2db667e7";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."12tb1".device = "/dev/disk/by-uuid/68c349e8-5118-4773-9fd5-5dbad9acee4e";
|
|
|
|
|
2023-09-26 20:13:18 +02:00
|
|
|
# fileSystems."/var/lib/docker/btrfs" =
|
2023-09-27 11:58:21 +02:00
|
|
|
# { device = "/swap/@/var/lib/docker/btrfs";
|
2023-09-26 20:13:18 +02:00
|
|
|
# fsType = "none";
|
|
|
|
# options = [ "bind" ];
|
|
|
|
# };
|
|
|
|
|
2023-09-27 11:58:21 +02:00
|
|
|
fileSystems."/mnt/backup" =
|
|
|
|
{ device = "/dev/disk/by-uuid/a454430b-dee3-4b6b-8325-f7bdb9435ed1";
|
2023-09-26 20:13:18 +02:00
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
2023-09-27 11:58:21 +02:00
|
|
|
boot.initrd.luks.devices."3tb1".device = "/dev/disk/by-uuid/20d86155-30d4-404c-95e8-c701cfb16ca5";
|
|
|
|
boot.initrd.luks.devices."3tb2".device = "/dev/disk/by-uuid/4651c3f1-e4b8-45aa-a823-df762530a307";
|
2023-09-27 11:08:46 +02:00
|
|
|
|
2023-09-26 20:13:18 +02:00
|
|
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
2023-09-26 18:21:57 +02: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;
|
2023-09-26 20:13:18 +02:00
|
|
|
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
|
2023-09-26 18:21:57 +02:00
|
|
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|