universe/hosts/Infini-DESKTOP/hardware-configuration.nix

97 lines
2.1 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
let
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
in
{
imports = [ ];
boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems =
let
main = uuid "13f97ece-823e-4785-b06e-6c284105d379";
backup = uuid "dabfc36b-20d1-4b09-8f55-4f9df7499741";
esp = uuid "1DB7-2844";
commonOptions = [ "autodefrag" "noatime" "ssd" ];
in
{
"/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=28G" "mode=755" ];
};
"/persist" = {
device = main;
fsType = "btrfs";
options = [ "subvol=root" ] ++ commonOptions;
neededForBoot = true;
};
"/persist/srv" = {
device = main;
fsType = "btrfs";
options = [ "subvol=root/srv" ] ++ commonOptions;
neededForBoot = true;
};
"/etc/ssh" = {
device = main;
fsType = "btrfs";
options = [ "subvolid=262" ] ++ commonOptions;
neededForBoot = true;
};
"/media/main" = {
device = main;
fsType = "btrfs";
options = commonOptions;
};
"/media/backup" = {
device = backup;
fsType = "btrfs";
options = commonOptions;
};
"/nix" = {
device = main;
fsType = "btrfs";
options = [ "subvol=nix" ] ++ commonOptions;
neededForBoot = true;
};
"/boot" = {
device = main;
fsType = "btrfs";
options = [ "subvol=boot" ] ++ commonOptions;
neededForBoot = true;
};
"/boot/efi" = {
device = esp;
fsType = "vfat";
neededForBoot = true;
};
"/home/infinidoge/Hydrus" = {
device = uuid "2a025f29-4058-4a76-8f38-483f0925375d";
fsType = "btrfs";
options = [ "subvol=Hydrus" ] ++ commonOptions;
};
};
swapDevices = [
{ device = uuid "37916097-dbb9-4a74-b761-17043629642a"; }
];
info = {
monitors = 3;
model = "Custom Desktop";
};
}