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

View File

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