feat: add host device type metadata

This commit is contained in:
kiri committed 2026-04-21 01:42:32 +02:00
1 parent 4008fde198
commit 2572022349
6 files changed
+13 -32

No files matched your search

+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
{