Compare commits
2 commits
6340657086
...
a3bd66771e
| Author | SHA1 | Date | |
|---|---|---|---|
| a3bd66771e | |||
| 87f425b1c6 |
2 changed files with 29 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
||||||
publicKey = "KkShcqgwbkX2A9n1hhST6qu+m3ldxdJ2Lx8Eiw6mdXw=";
|
publicKey = "KkShcqgwbkX2A9n1hhST6qu+m3ldxdJ2Lx8Eiw6mdXw=";
|
||||||
endpoint = "146.70.117.226:51820";
|
endpoint = "146.70.117.226:51820";
|
||||||
privateKeyFile = config.sops.secrets.wireguardKey.path;
|
privateKeyFile = config.sops.secrets.wireguardKey.path;
|
||||||
|
dns = "10.64.0.1";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.storagebox = {
|
services.storagebox = {
|
||||||
|
|
@ -67,6 +68,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.gonic = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
music-path = [ "/data/music" ];
|
||||||
|
podcast-path = [ "/data/podcast" ];
|
||||||
|
playlists-path = [ "/data/playlists" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."music.escapeangle.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:4747";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./hosting-02.yaml;
|
defaultSopsFile = ./hosting-02.yaml;
|
||||||
secrets = {
|
secrets = {
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,11 @@ in
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "10.10.10.2/30";
|
default = "10.10.10.2/30";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dns = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "9.9.9.9";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
@ -138,5 +143,10 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.etc."netns/${cfg.namespace}/resolv.conf" = {
|
||||||
|
text = ''
|
||||||
|
nameserver ${cfg.dns}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue