61 lines
2.3 KiB
Nix
61 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, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
||
boot.initrd.availableKernelModules =
|
||
[ "xhci_pci" "thunderbolt" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernel.sysctl = { "vm.swappiness" = 1; };
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/9d5b7792-3813-4eeb-9994-d8ecb7e28e8a";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@" "noatime" "nodiratime" "discard" ];
|
||
};
|
||
|
||
fileSystems."/boot/efi" = {
|
||
device = "/dev/disk/by-uuid/D9E9-8321";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/2a71bbf9-115c-4444-9d8e-e265df32df27";
|
||
fsType = "btrfs";
|
||
options = [ "noatime" "nodiratime" "discard" ];
|
||
};
|
||
fileSystems."/opt" = {
|
||
device = "/dev/disk/by-uuid/3574df3a-2a90-4b54-9c21-128f1d01ff8f";
|
||
fsType = "btrfs";
|
||
options = [ "noatime" "nodiratime" "discard" ];
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-a7b1ba69-0951-4347-886e-4c0c24c2b871".device =
|
||
"/dev/disk/by-uuid/a7b1ba69-0951-4347-886e-4c0c24c2b871";
|
||
|
||
swapDevices =
|
||
[{ device = "/dev/disk/by-uuid/da69776d-fedf-4020-98e0-34da52211a1b"; }];
|
||
|
||
# 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.enp46s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
hardware.cpu.intel.updateMicrocode =
|
||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
# high-resolution display
|
||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||
hardware.bluetooth.enable = true;
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
}
|