xin/hosts/stan/hardware-configuration.nix

60 lines
1.5 KiB
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ pkgs
, config
, lib
, modulesPath
, ...
2023-07-11 09:12:50 -06:00
}: {
2023-09-12 08:44:05 -06:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2022-08-29 09:48:47 -06:00
2023-09-12 08:44:05 -06:00
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
luks.devices."luks-e12e4b82-6f9e-4f80-b3f4-7e9a248e7827".device = "/dev/disk/by-uuid/e12e4b82-6f9e-4f80-b3f4-7e9a248e7827";
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
2022-08-29 09:48:47 -06:00
2023-09-12 08:44:05 -06:00
system.fsPackages = [ pkgs.sshfs ];
2023-06-15 09:10:54 -06:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/56138f23-38c0-4e4f-8dee-4fcd57c238a0";
fsType = "ext4";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/4CFA-E61D";
fsType = "vfat";
};
"/home/abieber/aef100" = {
device = "vm:aef100/";
fsType = "sshfs";
options = [
"_netdev"
"x-systemd.automount"
2023-09-12 08:44:05 -06:00
(builtins.replaceStrings [ " " ] [ "\\040" ]
2023-06-15 09:10:54 -06:00
"ssh_command=${pkgs.openssh}/bin/ssh -F /home/abieber/.ssh/config")
"reconnect"
"allow_other"
"cache=yes"
"auto_cache"
"ServerAliveInterval=15"
"IdentityFile=/home/abieber/.ssh/vm"
];
};
2022-08-29 09:48:47 -06:00
};
2023-09-12 08:44:05 -06:00
swapDevices = [{ device = "/dev/disk/by-uuid/85a3b559-0c0f-485d-9107-9f6ba5ad31da"; }];
2022-08-29 09:48:47 -06:00
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-08-30 07:45:39 -06:00
hardware.bluetooth.enable = true;
2022-08-29 09:48:47 -06:00
}