Compare commits

...

2 commits

Author SHA1 Message Date
4e0be8131d
containers/garnet: add hosts and correct bind mounts
Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled
2026-05-29 00:44:13 +10:00
947af464c4
alyssum/filesystem: add myosotis 2026-05-29 00:43:32 +10:00
3 changed files with 14 additions and 3 deletions

View file

@ -1,10 +1,20 @@
{ ... }: {
system.stateVersion = "25.11";
fileSystems."/var/lib/opencloud" = {
device = "/persist/opencloud";
device = "/flower/data";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/etc/opencloud" = {
device = "/persist/cfg";
fsType = "none";
options = [ "bind" ];
};
# TODO: hardcoded address
networking.extraHosts = ''
100.67.2.1 cloud.lava.moe
'';
networking.firewall.allowedTCPPorts = [ 9200 ];
networking.firewall.allowedUDPPorts = [ 9200 ];

View file

@ -41,12 +41,12 @@
proxyPass = "http://${client4}:9200";
proxyWebsockets = true;
};
# TODO: hardcoded address
listenAddresses = [ "100.67.2.1" ];
};
systemd.tmpfiles.rules = [
"d /persist/containers/${name} 755 root users"
"d /persist/flower 755 root users"
];
containers.${name} = {
autoStart = true;
@ -67,7 +67,7 @@
isReadOnly = false;
};
bindMounts."content" = {
hostPath = "/persist/flower";
hostPath = "/flower/opencloud";
mountPoint = "/flower";
isReadOnly = false;
};

View file

@ -26,6 +26,7 @@ in {
};
"/boot" = mkLabelMount "stem" "vfat";
"/flower" = mkBtrfsMount "myosotis" "/@" true;
"/nix" = submount "/@/nix" false;
"/persist" = (submount "/@/persist" true) // { neededForBoot = true; };
"/persist/.snapshots" = submount "/snap/persist" false;