System/machines/levitation/hardware.nix

93 lines
2.4 KiB
Nix
Raw Permalink Normal View History

2021-12-20 13:37:26 -05: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, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2021-12-20 13:37:26 -05:00
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
2023-06-16 20:19:55 -04:00
boot.initrd.kernelModules = [ "amdgpu" ];
2021-12-20 13:37:26 -05:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/mapper/crypt-pv";
fsType = "btrfs";
options = [ "subvol=root" ];
};
2021-12-20 13:37:26 -05:00
boot.initrd.luks.devices."crypt-pv".device =
"/dev/disk/by-uuid/15e9f417-b35a-40fe-a066-595be13cf230";
2021-12-20 13:37:26 -05:00
fileSystems."/home" = {
device = "/dev/mapper/crypt-pv";
fsType = "btrfs";
options = [ "subvol=home" ];
};
2021-12-20 13:37:26 -05:00
fileSystems."/nix" = {
device = "/dev/mapper/crypt-pv";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
2021-12-20 13:37:26 -05:00
fileSystems."/etc" = {
device = "/dev/mapper/crypt-pv";
fsType = "btrfs";
options = [ "subvol=etc" ];
};
2021-12-20 13:37:26 -05:00
fileSystems."/var" = {
device = "/dev/mapper/crypt-pv";
fsType = "btrfs";
options = [ "subvol=var" ];
};
2021-12-20 13:37:26 -05:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1425-B41E";
fsType = "vfat";
};
2021-12-20 13:37:26 -05:00
2022-05-02 21:24:49 -04:00
fileSystems."/home/nathan/Music" = {
device = "10.0.0.139:/mnt/tank/root/nathan/music";
fsType = "nfs";
2023-07-03 20:12:19 -04:00
options = [ "x-systemd.automount" "noauto" ];
2022-05-02 21:24:49 -04:00
};
2022-07-04 17:34:15 -04:00
fileSystems."/mnt/general" = {
device = "10.0.0.139:/mnt/tank/root/shares/general";
fsType = "nfs";
2023-07-03 20:12:19 -04:00
options = [ "x-systemd.automount" "noauto" ];
2022-07-04 17:34:15 -04:00
};
fileSystems."/mnt/archive" = {
device = "10.0.0.139:/mnt/tank/root/shares/archive";
fsType = "nfs";
2023-07-03 20:12:19 -04:00
options = [ "x-systemd.automount" "noauto" ];
2022-07-04 17:34:15 -04:00
};
2023-04-22 23:57:15 -04:00
fileSystems."/mnt/books" = {
device = "10.0.0.139:/mnt/tank/root/data/books";
fsType = "nfs";
2023-07-03 20:12:19 -04:00
options = [ "x-systemd.automount" "noauto" ];
2023-04-22 23:57:15 -04:00
};
2022-05-02 21:24:49 -04:00
2023-07-03 21:56:26 -04:00
environment.etc.crypttab = {
enable = true;
text = ''
crypt-bigssd UUID=751c00cb-32ed-4aa9-83f6-5d65955480a5 /var/big-ssd-keyfile luks
'';
};
swapDevices = [{
device = "/dev/disk/by-partuuid/f9d26ecd-7df5-48ad-bc19-b9ac4e91b0ee";
randomEncryption = {
cipher = "aes-xts-plain64";
enable = true;
source = "/dev/random";
};
}];
2021-12-20 13:37:26 -05:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2021-12-20 13:37:26 -05:00
}