nix-configurations/hosts/m3-nix/hardware-configuration.nix

60 lines
2.2 KiB
Nix
Raw Normal View History

2022-12-30 12:05:46 +00: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, ... }:
{
2022-12-31 12:07:15 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2022-12-30 12:05:46 +00:00
2022-12-31 12:07:15 +00:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "thunderbolt" "ahci" "nvme" "usb_storage" "sd_mod" ];
2022-12-30 12:05:46 +00:00
boot.initrd.kernelModules = [ ];
boot.kernel.sysctl = { "vm.swappiness" = 1; };
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2022-12-31 12:07:15 +00:00
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";
2022-12-30 12:05:46 +00:00
swapDevices =
2022-12-31 12:07:15 +00:00
[{ device = "/dev/disk/by-uuid/da69776d-fedf-4020-98e0-34da52211a1b"; }];
2022-12-30 12:05:46 +00: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;
# networking.interfaces.enp46s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2022-12-31 12:07:15 +00:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-30 12:05:46 +00:00
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
hardware.bluetooth.enable = true;
}