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