mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-14 02:38:58 +02:00
Try out the better local config declaration.
This commit is contained in:
parent
39ad4beff8
commit
598f9bb256
3 changed files with 27 additions and 10 deletions
|
|
@ -4,10 +4,19 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
local.hostname = "nixos-traefik";
|
||||
local.username = "traefikprg";
|
||||
local.userDescription = "NixOS PRG Traefik Service";
|
||||
local.address = "10.1.1.250";
|
||||
options.local = {
|
||||
hostname = lib.mkOption {type = lib.types.str;};
|
||||
username = lib.mkOption {type = lib.types.str;};
|
||||
userDescription = lib.mkOption {type = lib.types.str;};
|
||||
address = lib.mkOption {type = lib.types.str;};
|
||||
};
|
||||
|
||||
config = {
|
||||
local.hostname = "nixos-traefik";
|
||||
local.username = "traefikprg";
|
||||
local.userDescription = "NixOS PRG Traefik Service";
|
||||
local.address = "10.1.1.250";
|
||||
};
|
||||
|
||||
services.traefik = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue