base/users: fix empty password handling

This commit is contained in:
Motiejus Jakštys 2024-03-06 13:07:41 +02:00
parent 88da46eb98
commit 741c21214f
1 changed files with 1 additions and 5 deletions

View File

@ -49,11 +49,7 @@ in {
myData.people_pubkeys.motiejus
];
}
// lib.filterAttrs (
n: v:
(n == "hashedPasswordFile" || n == "initialPassword") && v != null
)
cfg.user or {};
// lib.filterAttrs (_: v: v != null) cfg.user or {};
root = lib.filterAttrs (_: v: v != null) cfg.root;
};