System/machines/levitation/hardware.nix

82 lines
2.1 KiB
Nix
Raw 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" ];
2021-12-20 13:37:26 -05:00
boot.initrd.kernelModules = [ ];
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";
};
2022-07-04 17:34:15 -04:00
fileSystems."/mnt/general" = {
device = "10.0.0.139:/mnt/tank/root/shares/general";
fsType = "nfs";
};
fileSystems."/mnt/archive" = {
device = "10.0.0.139:/mnt/tank/root/shares/archive";
fsType = "nfs";
};
2023-04-22 23:57:15 -04:00
fileSystems."/mnt/books" = {
device = "10.0.0.139:/mnt/tank/root/data/books";
fsType = "nfs";
};
2022-05-02 21:24:49 -04:00
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
}