mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
chore: removed other users and systems
This commit is contained in:
parent
2b4ad99e25
commit
233cab07dd
135 changed files with 216 additions and 2462 deletions
|
@ -7,38 +7,7 @@ let
|
|||
inherit (flake.config.people)
|
||||
user0
|
||||
user1
|
||||
user2
|
||||
user3
|
||||
;
|
||||
inherit (flake.config.machines)
|
||||
devices
|
||||
;
|
||||
hostname = config.networking.hostName;
|
||||
mars = devices.mars.name;
|
||||
ceres = devices.ceres.name;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
deimos = devices.deimos.name;
|
||||
|
||||
userLogic =
|
||||
if
|
||||
builtins.elem hostname [
|
||||
mars
|
||||
deimos
|
||||
ceres
|
||||
]
|
||||
then
|
||||
[
|
||||
user0
|
||||
user1
|
||||
user3
|
||||
]
|
||||
else if hostname == charon then
|
||||
[ user1 ]
|
||||
else if hostname == venus then
|
||||
[ user2 ]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
{
|
||||
security = {
|
||||
|
@ -48,7 +17,10 @@ in
|
|||
{
|
||||
keepEnv = true;
|
||||
noPass = true;
|
||||
users = userLogic;
|
||||
users = [
|
||||
user0
|
||||
user1
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue