2022-05-25 19:27:42 +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 =
|
2022-06-11 23:28:31 +02:00
|
|
|
|
[
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2022-05-25 19:27:42 +02:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
2022-06-11 23:28:31 +02:00
|
|
|
|
{
|
2022-07-15 05:05:04 +02:00
|
|
|
|
device = "rpool/nixos";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
2022-05-25 19:27:42 +02:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-15 05:05:04 +02:00
|
|
|
|
fileSystems."/nix" =
|
2022-06-11 23:28:31 +02:00
|
|
|
|
{
|
2022-07-15 05:05:04 +02:00
|
|
|
|
device = "rpool/nixos/nix";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
2022-05-25 19:27:42 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2022-06-11 23:28:31 +02:00
|
|
|
|
{
|
2022-07-15 05:05:04 +02:00
|
|
|
|
device = "rpool/userdata/home";
|
|
|
|
|
fsType = "zfs";
|
|
|
|
|
options = [ "zfsutil" ];
|
2022-05-25 19:27:42 +02:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-15 05:05:04 +02:00
|
|
|
|
fileSystems."/boot" =
|
2022-06-11 23:28:31 +02:00
|
|
|
|
{
|
2022-07-15 05:05:04 +02:00
|
|
|
|
device = "/dev/disk/by-uuid/A8AA-1CC4";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "X-mount.mkdir" ];
|
2022-05-25 19:27:42 +02:00
|
|
|
|
};
|
|
|
|
|
|
2022-07-15 05:05:04 +02:00
|
|
|
|
swapDevices =
|
|
|
|
|
[{
|
|
|
|
|
device = "/dev/disk/by-partuuid/f9712640-96a5-46e1-b07d-53b0cba19057";
|
|
|
|
|
randomEncryption = true;
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
# 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;
|
2022-05-25 19:27:42 +02:00
|
|
|
|
networking.interfaces.enp53s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
networking.interfaces.wlp54s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
2022-07-15 05:05:04 +02:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2022-05-25 19:27:42 +02:00
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|