fix fstype
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 26s

This commit is contained in:
Satria 2026-03-29 11:30:08 +07:00
commit 9e5f99b718
2 changed files with 7 additions and 11 deletions

View file

@ -2,8 +2,8 @@ let
d = dest: { inherit dest; auth = false; }; d = dest: { inherit dest; auth = false; };
da = dest: { inherit dest; auth = true; }; da = dest: { inherit dest; auth = true; };
o = path: { inherit path; required = false; }; ext4 = path: { inherit path; type = "ext4"; };
r = path: { inherit path; required = true; }; btrfs = path: { inherit path; type = "btrfs"; };
in { in {
flake-path = "~/Projects/nix-flake"; # set this to the cloned repo path flake-path = "~/Projects/nix-flake"; # set this to the cloned repo path
@ -27,10 +27,10 @@ in {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJtdH1YqRH9xhuHMivezLvj/hpH77yfH3HUCaRboB/hb forgejo-deploy-runner" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJtdH1YqRH9xhuHMivezLvj/hpH77yfH3HUCaRboB/hb forgejo-deploy-runner"
]; ];
disks = { disks = {
share = o "/dev/disk/by-uuid/f1ee1d17-e852-4e02-ae86-eaf6116a2aeb"; # disk for file share and storage share = btrfs "/dev/disk/by-uuid/f1ee1d17-e852-4e02-ae86-eaf6116a2aeb"; # disk for file share and storage
gallery = r "/dev/disk/by-uuid/834f51c1-90ee-4601-ba76-ef0419198d67"; # disk for photo gallery gallery = ext4 "/dev/disk/by-uuid/834f51c1-90ee-4601-ba76-ef0419198d67"; # disk for photo gallery
data = r "/dev/disk/by-uuid/a5752dd6-092d-484c-969c-2fdc7cb4a5f0"; # disk for app data data = ext4 "/dev/disk/by-uuid/a5752dd6-092d-484c-969c-2fdc7cb4a5f0"; # disk for app data
host = r "/dev/disk/by-uuid/968f14a4-631e-4325-8cd1-f9aec0da9e4d"; # disk for media collection (named host for backwards compatibility) host = ext4 "/dev/disk/by-uuid/968f14a4-631e-4325-8cd1-f9aec0da9e4d"; # disk for media collection (named host for backwards compatibility)
}; };
dash = [ dash = [
[ "PocketID" "authentik" "https://auth.${domain}" "http://localhost:1411/" ] [ "PocketID" "authentik" "https://auth.${domain}" "http://localhost:1411/" ]

View file

@ -1,6 +1,5 @@
{ lib, homelab, ... }: let { lib, homelab, ... }: let
globalOpts = { globalOpts = {
fsType = "ext4";
autoFormat = true; autoFormat = true;
autoResize = true; autoResize = true;
}; };
@ -10,10 +9,7 @@ in {
} // lib.mapAttrs' (name: dev: } // lib.mapAttrs' (name: dev:
lib.nameValuePair "/mnt/${name}" (globalOpts // { lib.nameValuePair "/mnt/${name}" (globalOpts // {
device = dev.path; device = dev.path;
options = if dev.required == false then [ fsType = dev.type;
"nofail"
"x-systemd.automount"
] else [ "defaults" ];
}) })
) homelab.disks; ) homelab.disks;
} }