mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-15 08:08:20 +01:00
vps1: reorganize data a bit
This commit is contained in:
parent
2f1cf4f40e
commit
e158c95133
5 changed files with 15 additions and 8 deletions
|
|
@ -1,3 +1,12 @@
|
|||
{
|
||||
let
|
||||
host = builtins.fromTOML (builtins.readFile ./host.toml);
|
||||
rootDomain = host.rootDomain;
|
||||
services = builtins.fromTOML (builtins.readFile ./services.toml);
|
||||
in
|
||||
{
|
||||
inherit host;
|
||||
services = builtins.mapAttrs (name: values:
|
||||
values //
|
||||
(if values ? subdomain then {domain = "${values.subdomain}.${rootDomain}";} else {})
|
||||
) services;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue