feat: add host device type metadata
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user