mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: forgejo microVM
This commit is contained in:
parent
aedf6e4be4
commit
6d83b2b2f5
11 changed files with 270 additions and 294 deletions
|
|
@ -5,9 +5,8 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.people) user0;
|
||||
inherit (flake.config.machines.devices) mars ceres;
|
||||
inherit (flake.config.services) instances;
|
||||
ceresSecrets = config.sops.secrets."network/server".path;
|
||||
inherit (flake.config.machines.devices) mars eris;
|
||||
erisSecrets = config.sops.secrets."network/server".path;
|
||||
in
|
||||
{
|
||||
fileSystems =
|
||||
|
|
@ -23,10 +22,7 @@ in
|
|||
];
|
||||
|
||||
sambaFolders = [
|
||||
instances.audiobookshelf.name
|
||||
instances.jellyfin.name
|
||||
instances.comfyui.name
|
||||
# instances.opencloud.name
|
||||
"raid0"
|
||||
];
|
||||
|
||||
storageMounts = storageDrive: {
|
||||
|
|
@ -39,12 +35,12 @@ in
|
|||
};
|
||||
|
||||
sambaMounts = sambaDrive: folder: {
|
||||
name = "${ceres.${sambaDrive}.mount}/${folder}";
|
||||
name = "${eris.${sambaDrive}.mount}/${folder}";
|
||||
value = {
|
||||
device = "${ceres.${sambaDrive}.device}/${folder}";
|
||||
device = "${eris.${sambaDrive}.device}/${folder}";
|
||||
fsType = "cifs";
|
||||
options = ceres.${sambaDrive}.options ++ [
|
||||
"credentials=${ceresSecrets}"
|
||||
options = eris.${sambaDrive}.options ++ [
|
||||
"credentials=${erisSecrets}"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -59,11 +55,11 @@ in
|
|||
fsType = "vfat";
|
||||
options = mars.boot.options;
|
||||
};
|
||||
};
|
||||
# // (builtins.listToAttrs (map storageMounts storageDrives))
|
||||
# // (builtins.listToAttrs (
|
||||
# builtins.concatMap (drive: map (folder: sambaMounts drive folder) sambaFolders) sambaDrives
|
||||
# ));
|
||||
}
|
||||
// (builtins.listToAttrs (map storageMounts storageDrives))
|
||||
// (builtins.listToAttrs (
|
||||
builtins.concatMap (drive: map (folder: sambaMounts drive folder) sambaFolders) sambaDrives
|
||||
));
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/6b56990c-545d-4d00-b93b-8ca1f143882e"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue