Infini-STICK: reconfigure for new USB stick

This commit is contained in:
Infinidoge 2024-01-22 16:24:44 -05:00
parent 075a4a7797
commit eaabe3e315
No known key found for this signature in database
8 changed files with 112 additions and 112 deletions

View file

@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
let
uuid = uuid: "/dev/disk/by-uuid/${uuid}";
main = uuid "ae3f3d98-1d87-47b4-a4ed-d69a896eee69";
commonOptions = [ "autodefrag" "noatime" "compress=zstd:7" ];
mkMain' = options: {
device = main;
fsType = "btrfs";
options = commonOptions ++ options;
};
mkMain = options: (mkMain' options) // { neededForBoot = true; };
in
{
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=4GB" "mode=755" ];
};
"/media/main" = mkMain' [ ];
"/persist" = mkMain [ "subvol=root" ];
"/etc/ssh" = mkMain [ "subvol=root/etc/ssh" ];
"/nix" = mkMain [ "subvol=nix" ];
"/boot" = mkMain [ "subvol=boot" ];
"/boot/efi" = {
device = uuid "D7DB-2291";
fsType = "vfat";
neededForBoot = true;
};
};
}