feat: add host device type metadata

This commit is contained in:
2026-04-21 01:42:32 +02:00
parent 4008fde198
commit 2572022349
6 changed files with 13 additions and 32 deletions
+3 -5
View File
@@ -8,15 +8,13 @@ in
{
flake.modules.nixos.sopsHost =
{
hostType ? "desktop",
lib,
host ? {
isServer = false;
},
...
}:
let
useHostSshKey = host.isServer;
useAdminKeyFile = !host.isServer;
useHostSshKey = hostType == "server";
useAdminKeyFile = hostType != "server";
adminKeyDir = builtins.dirOf sopsAdminKeyPath;
in
{