fixed home manager session variables

This commit is contained in:
Aleksandr Lebedev 2025-08-11 15:35:34 +02:00
parent f2ebfeb4ea
commit fa3a7f5786
3 changed files with 16 additions and 2 deletions

View file

@ -19,14 +19,18 @@ in rec {
mkDeploy = {
self,
overrides ? {},
exclude ? [],
}: let
hosts = self.nixosConfigurations or {};
hosts =
builtins.removeAttrs
(self.nixosConfigurations or {})
exclude;
names = builtins.attrNames hosts;
nodes =
lib.foldl (
result: name: let
host = hosts.${name};
user = host.config.user.name or null;
user = overrides.user or null;
inherit (host.pkgs) system;
in
result