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
+4 -5
View File
@@ -24,18 +24,17 @@ let
{ accountName }:
{
config,
host ? {
isServer = false;
},
hostType ? "desktop",
lib,
pkgs,
...
}:
let
account = accounts.${accountName};
isServer = hostType == "server";
in
{
sops.secrets = lib.optionalAttrs (!host.isServer) {
sops.secrets = lib.optionalAttrs (!isServer) {
"hashed-password-${accountName}".neededForUsers = true;
};
@@ -51,7 +50,7 @@ let
"networkmanager"
];
}
// lib.optionalAttrs (!host.isServer) {
// lib.optionalAttrs (!isServer) {
hashedPasswordFile = config.sops.secrets."hashed-password-${accountName}".path;
};