mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
feat(profiles/base): add internal record for each machine
This commit is contained in:
parent
0a0f3ad1eb
commit
e32cc13320
1 changed files with 18 additions and 0 deletions
|
@ -75,6 +75,24 @@
|
||||||
"/persistent/etc/ssh/ssh_host_ed25519_key"
|
"/persistent/etc/ssh/ssh_host_ed25519_key"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
machine.meta.zones.luj =
|
||||||
|
lib.mkIf
|
||||||
|
(lib.hasAttrByPath [
|
||||||
|
"vpn"
|
||||||
|
"ipv4"
|
||||||
|
] config.machine.meta.ips)
|
||||||
|
{
|
||||||
|
SOA = {
|
||||||
|
nameServer = "ns";
|
||||||
|
adminEmail = "dns@malka.sh";
|
||||||
|
serial = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
subdomains.${config.networking.hostName} = {
|
||||||
|
A = [ config.machine.meta.ips.vpn.ipv4 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.nixos.label = "${config.system.nixos.release}-${
|
system.nixos.label = "${config.system.nixos.release}-${
|
||||||
let
|
let
|
||||||
repo = builtins.fetchGit ../.;
|
repo = builtins.fetchGit ../.;
|
||||||
|
|
Loading…
Add table
Reference in a new issue