93 lines
2.4 KiB
Nix
93 lines
2.4 KiB
Nix
# 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") ];
|
||
|
||
boot.initrd.availableKernelModules =
|
||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/mapper/crypt-pv";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=root" ];
|
||
};
|
||
|
||
boot.initrd.luks.devices."crypt-pv".device =
|
||
"/dev/disk/by-uuid/15e9f417-b35a-40fe-a066-595be13cf230";
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/mapper/crypt-pv";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" ];
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "/dev/mapper/crypt-pv";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nix" ];
|
||
};
|
||
|
||
fileSystems."/etc" = {
|
||
device = "/dev/mapper/crypt-pv";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=etc" ];
|
||
};
|
||
|
||
fileSystems."/var" = {
|
||
device = "/dev/mapper/crypt-pv";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=var" ];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/1425-B41E";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/home/nathan/Music" = {
|
||
device = "10.0.0.139:/mnt/tank/root/nathan/music";
|
||
fsType = "nfs";
|
||
options = [ "x-systemd.automount" "noauto" ];
|
||
};
|
||
fileSystems."/mnt/general" = {
|
||
device = "10.0.0.139:/mnt/tank/root/shares/general";
|
||
fsType = "nfs";
|
||
options = [ "x-systemd.automount" "noauto" ];
|
||
};
|
||
fileSystems."/mnt/archive" = {
|
||
device = "10.0.0.139:/mnt/tank/root/shares/archive";
|
||
fsType = "nfs";
|
||
options = [ "x-systemd.automount" "noauto" ];
|
||
};
|
||
fileSystems."/mnt/books" = {
|
||
device = "10.0.0.139:/mnt/tank/root/data/books";
|
||
fsType = "nfs";
|
||
options = [ "x-systemd.automount" "noauto" ];
|
||
};
|
||
|
||
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";
|
||
};
|
||
}];
|
||
|
||
hardware.cpu.amd.updateMicrocode =
|
||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|