2024-05-30 16:54:58 -03:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-26 15:11:21 -03:00
|
|
|
let
|
2024-05-30 16:54:58 -03:00
|
|
|
btrfs_options = [
|
|
|
|
"compress=zstd:3"
|
|
|
|
"noatime"
|
|
|
|
"x-systemd.device-timeout=0"
|
|
|
|
];
|
|
|
|
btrfs_ssd = [
|
|
|
|
"ssd"
|
|
|
|
"discard=async"
|
|
|
|
];
|
2023-10-26 15:11:21 -03:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"nvme"
|
|
|
|
"usb_storage"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
2023-10-26 15:11:21 -03:00
|
|
|
boot.initrd.kernelModules = [ "i915" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/a072a77b-ca29-47df-be65-6d310d067d78";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ] ++ btrfs_options ++ btrfs_ssd;
|
|
|
|
};
|
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
boot.initrd.luks.devices."luks-d6573cf8-25f0-4ffc-8046-ac3a4db1e964".device = "/dev/disk/by-uuid/d6573cf8-25f0-4ffc-8046-ac3a4db1e964";
|
2023-10-26 15:11:21 -03:00
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/97EB-7DB5";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
2024-05-30 16:54:58 -03:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-10-26 15:11:21 -03:00
|
|
|
|
|
|
|
networking.hostName = "double-rainbow"; # Define your hostname.
|
|
|
|
}
|