Compare commits
2 commits
0e693f0780
...
4e0be8131d
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e0be8131d | |||
| 947af464c4 |
3 changed files with 14 additions and 3 deletions
|
|
@ -1,10 +1,20 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
fileSystems."/var/lib/opencloud" = {
|
fileSystems."/var/lib/opencloud" = {
|
||||||
device = "/persist/opencloud";
|
device = "/flower/data";
|
||||||
fsType = "none";
|
fsType = "none";
|
||||||
options = [ "bind" ];
|
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.allowedTCPPorts = [ 9200 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 9200 ];
|
networking.firewall.allowedUDPPorts = [ 9200 ];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,12 @@
|
||||||
proxyPass = "http://${client4}:9200";
|
proxyPass = "http://${client4}:9200";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
# TODO: hardcoded address
|
||||||
listenAddresses = [ "100.67.2.1" ];
|
listenAddresses = [ "100.67.2.1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /persist/containers/${name} 755 root users"
|
"d /persist/containers/${name} 755 root users"
|
||||||
"d /persist/flower 755 root users"
|
|
||||||
];
|
];
|
||||||
containers.${name} = {
|
containers.${name} = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
bindMounts."content" = {
|
bindMounts."content" = {
|
||||||
hostPath = "/persist/flower";
|
hostPath = "/flower/opencloud";
|
||||||
mountPoint = "/flower";
|
mountPoint = "/flower";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ in {
|
||||||
};
|
};
|
||||||
"/boot" = mkLabelMount "stem" "vfat";
|
"/boot" = mkLabelMount "stem" "vfat";
|
||||||
|
|
||||||
|
"/flower" = mkBtrfsMount "myosotis" "/@" true;
|
||||||
"/nix" = submount "/@/nix" false;
|
"/nix" = submount "/@/nix" false;
|
||||||
"/persist" = (submount "/@/persist" true) // { neededForBoot = true; };
|
"/persist" = (submount "/@/persist" true) // { neededForBoot = true; };
|
||||||
"/persist/.snapshots" = submount "/snap/persist" false;
|
"/persist/.snapshots" = submount "/snap/persist" false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue