webserver: Move config into a single file
This commit is contained in:
parent
f07c99b908
commit
f509abebec
3 changed files with 19 additions and 21 deletions
|
@ -1,6 +1,24 @@
|
|||
{ secret, ... }:
|
||||
|
||||
{
|
||||
# mosquitto
|
||||
|
||||
environment.etc."container-webserver/mosquitto/mosquitto.conf" = {
|
||||
text = ''
|
||||
listener 1883
|
||||
password_file /mosquitto/config/users.conf
|
||||
'';
|
||||
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
environment.etc."container-webserver/mosquitto/users.conf" = {
|
||||
text = secret.container.webserver.mosquitto.users;
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
# traefik
|
||||
|
||||
environment.etc."container-webserver/traefik/traefik.toml" = {
|
||||
text = ''
|
||||
[providers]
|
|
@ -1,17 +0,0 @@
|
|||
{ secret, ... }:
|
||||
|
||||
{
|
||||
environment.etc."container-webserver/mosquitto/mosquitto.conf" = {
|
||||
text = ''
|
||||
listener 1883
|
||||
password_file /mosquitto/config/users.conf
|
||||
'';
|
||||
|
||||
mode = "0644";
|
||||
};
|
||||
|
||||
environment.etc."container-webserver/mosquitto/users.conf" = {
|
||||
text = secret.container.webserver.mosquitto.users;
|
||||
mode = "0644";
|
||||
};
|
||||
}
|
|
@ -1,9 +1,6 @@
|
|||
let
|
||||
secret = import ../../secret/container/webserver.nix;
|
||||
config-mosquitto = import ./config/mosquitto.nix { inherit secret; };
|
||||
config-traefik = import ./config/traefik.nix { inherit secret; };
|
||||
|
||||
custom-config = config-mosquitto // config-traefik;
|
||||
custom-config = import ./config.nix { inherit secret; };
|
||||
in
|
||||
{
|
||||
virtualisation.arion.projects.webserver.settings = {
|
||||
|
|
Loading…
Reference in a new issue