Pass hostname as home-manager modules arg

This commit is contained in:
Andrea Ciceri 2024-05-15 16:56:15 +02:00
parent 93540ebbea
commit b822cce916
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -4,6 +4,7 @@
pkgs, pkgs,
fleetHmModules, fleetHmModules,
fleetFlake, fleetFlake,
vpn,
... ...
}: let }: let
cfg = config.ccr; cfg = config.ccr;
@ -100,6 +101,8 @@ in {
_module.args = { _module.args = {
inherit (config.age) secrets; inherit (config.age) secrets;
inherit (cfg) username; inherit (cfg) username;
inherit vpn;
hostname = config.networking.hostName;
}; };
} }
] ]