flakes/containers/garnet/configuration.nix

35 lines
808 B
Nix
Raw Normal View History

2026-05-28 23:01:43 +10:00
{ ... }: {
system.stateVersion = "25.11";
fileSystems."/var/lib/opencloud" = {
device = "/flower/data";
2026-05-28 23:01:43 +10:00
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
'';
2026-05-28 23:01:43 +10:00
networking.firewall.allowedTCPPorts = [ 9200 ];
networking.firewall.allowedUDPPorts = [ 9200 ];
environment.etc."opencloud-admin-pass".text = ''
IDM_ADMIN_PASSWORD=supersillysecure
'';
services.opencloud = {
enable = true;
url = "https://cloud.lava.moe";
address = "10.30.7.2";
2026-05-28 23:01:43 +10:00
port = 9200;
environment = {
PROXY_TLS = "false";
};
environmentFile = "/etc/opencloud-admin-pass";
};
}