nix-conf/hosts/Nixstation/hardware-configuration.nix

70 lines
1.5 KiB
Nix

{ config
, lib
, modulesPath
, pkgs
, ...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [
"ahci"
"ehci_pci"
"nvme"
"sd_mod"
"usb_storage"
"usbhid"
"sd_mod"
"xhci_pci"
];
kernelParams = [ "amd_pstate=active" "usbcore.autosuspend=-1" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-amd" "iwlwifi" ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/07c4d31f-e1cd-4a02-8b3f-8c2bd2e0ce8d";
fsType = "btrfs";
options = [ "subvol=@" ];
};
"/home" = {
device = "/dev/disk/by-uuid/07c4d31f-e1cd-4a02-8b3f-8c2bd2e0ce8d";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/D2EA-469F";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [ ];
networking = {
useDHCP = lib.mkDefault true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {
# sane.extraBackends = [ pkgs.epsonscan2 ];
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
enableRedistributableFirmware = true;
bluetooth.enable = true;
};
services = {
blueman.enable = true;
udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"
'';
};
}