Compare commits

..

No commits in common. "4e0be8131d79fdb4e8efdb0dcaa4b0428f6e2bed" and "0e693f07801cbc42f1167179a36a361108b74dfc" have entirely different histories.

3 changed files with 3 additions and 14 deletions

View file

@ -1,20 +1,10 @@
{ ... }: {
system.stateVersion = "25.11";
fileSystems."/var/lib/opencloud" = {
device = "/flower/data";
device = "/persist/opencloud";
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 = "/flower/opencloud";
hostPath = "/persist/flower";
mountPoint = "/flower";
isReadOnly = false;
};

View file

@ -26,7 +26,6 @@ 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;