Infini-OPTIPLEX: init

This commit is contained in:
Infinidoge 2023-10-19 18:51:15 -04:00
parent 422c1cadc2
commit 4890a4538e
11 changed files with 480 additions and 0 deletions

View file

@ -0,0 +1,59 @@
{ config, lib, pkgs, ... }:
let
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
main = uuid "9d4bf2d8-f139-42e7-937a-541a7870d806";
commonOptions = [ "autodefrag" "noatime" "ssd" "compress=zstd:1" ];
in
{
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=16G" "mode=755" ];
};
"/media/main" = {
device = main;
fsType = "btrfs";
options = commonOptions;
};
"/persist" = {
device = main;
fsType = "btrfs";
options = [ "subvol=root" ] ++ commonOptions;
neededForBoot = true;
};
"/etc/ssh" = {
device = main;
fsType = "btrfs";
options = [ "subvol=root/etc/ssh" ] ++ commonOptions;
neededForBoot = true;
};
"/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 = uuid "23B2-DCD2";
fsType = "vfat";
neededForBoot = true;
};
};
swapDevices = [
{ device = uuid "a002985f-68c9-46a1-b62e-1c6aec6bd3f3"; }
];
}