mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
refactor: moved the list inside the helper
This commit is contained in:
parent
4306036758
commit
e57fdb85e7
1 changed files with 8 additions and 7 deletions
|
@ -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
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue