Files
frank-nix/hosts/nero/hardware.nix
T
2026-10-30 22:38:22 -04:00

63 lines
1.2 KiB
Nix

{
config,
lib,
modulesPath,
pkgs,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [
"nvme"
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
];
initrd.kernelModules = [ ];
kernelModules = [ ];
extraModulePackages = [ ];
};
fileSystems."/mnt/fileshare" = {
device = "frank@vergil.cfl.rr.com:/mnt/shares";
fsType = "sshfs";
options = [
"uid=${builtins.toString config.users.users.frank.uid}"
"gid=${builtins.toString config.users.groups.users.gid}"
"default_permissions"
"allow_other"
"_netdev"
"x-systemd.automount"
"reconnect"
"ServerAliveInterval=15"
"IdentityFile=${config.sops.secrets.personal_ssh_key_ed25519.path}"
];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {
bluetooth.enable = true;
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nvidia = {
open = true;
modesetting.enable = true;
};
graphics = {
enable = true;
extraPackages = with pkgs; [ mesa.opencl ];
};
};
}