sudo: fix extraGroups of motiejus

this misses 'wheel'
This commit is contained in:
Motiejus Jakštys 2023-09-14 13:07:39 +03:00
parent 4a5893ae73
commit b1b046d78a
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@
uid = myData.uidgid.motiejus;
openssh.authorizedKeys.keys = [myData.people_pubkeys.motiejus];
}
// lib.filterAttrs (n: v: v != null) passwd.motiejus or {};
// lib.filterAttrs (
n: v:
(n == "passwordFile" || n == "initialPassword") && v != null
)
passwd.motiejus or {};
root = assert lib.assertMsg (passwd ? root) "root password needs to be defined";
lib.filterAttrs (n: v: v != null) passwd.root;