From 650c6724f0c36d8e02d91b651c650bb410a5af7d Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Sat, 6 Jun 2026 01:14:08 +0400 Subject: [PATCH] flip host and user --- nix/flakeModule.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/flakeModule.nix b/nix/flakeModule.nix index 63cdb26..556e640 100644 --- a/nix/flakeModule.nix +++ b/nix/flakeModule.nix @@ -68,7 +68,7 @@ in ) ); - # Every user on every host is a home identity "@". + # Every user on every host is a home identity "@". home_keys = lib.mergeAttrsList ( lib.flatten ( map ( @@ -76,7 +76,7 @@ in lib.mapAttrsToList ( _: host: lib.mapAttrsToList ( - _: user: { "${host.hostName}@${user.userName}" = toKeyList (user.sopsPublic or [ ]); } + _: user: { "${user.userName}@${host.hostName}" = toKeyList (user.sopsPublic or [ ]); } ) (host.users or { }) ) perSystem ) (builtins.attrValues den.hosts)