66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
modulesPath,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
../shared/fs-layouts/single-disk-btrfs.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-container-toolkit.enable = true;
|
|
|
|
nvidia = {
|
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
|
open = true;
|
|
modesetting.enable = true;
|
|
};
|
|
|
|
graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [ mesa.opencl ];
|
|
};
|
|
};
|
|
}
|