refactor: moved the list inside the helper

This commit is contained in:
Nick 2025-03-21 18:53:07 -05:00
parent 4306036758
commit e57fdb85e7

View file

@ -27,13 +27,16 @@ let
ceres ceres
] ]
then then
user0 [
user0
user1
]
else if hostname == charon then else if hostname == charon then
user1 [ user1 ]
else if hostname == venus then else if hostname == venus then
user2 [ user2 ]
else else
""; [ ];
in in
{ {
security = { security = {
@ -43,9 +46,7 @@ in
{ {
keepEnv = true; keepEnv = true;
noPass = true; noPass = true;
users = [ users = userLogic;
userLogic
];
} }
]; ];
}; };