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

View File

@ -48,7 +48,11 @@
uid = myData.uidgid.motiejus; uid = myData.uidgid.motiejus;
openssh.authorizedKeys.keys = [myData.people_pubkeys.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"; root = assert lib.assertMsg (passwd ? root) "root password needs to be defined";
lib.filterAttrs (n: v: v != null) passwd.root; lib.filterAttrs (n: v: v != null) passwd.root;