mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +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"
|
||||
];
|
||||
|
||||
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}-${
|
||||
let
|
||||
repo = builtins.fetchGit ../.;
|
||||
|
|
Loading…
Add table
Reference in a new issue