mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: added other systems
This commit is contained in:
parent
9c41180795
commit
aca3a1f3c8
4 changed files with 21 additions and 21 deletions
|
@ -9,10 +9,10 @@ let
|
|||
devices
|
||||
;
|
||||
hostname = config.networking.hostName;
|
||||
jupiter = devices.jupiter.name;
|
||||
mars = devices.mars.name;
|
||||
ceres = devices.ceres.name;
|
||||
saturn = devices.saturn.names;
|
||||
callisto = devices.callisto.name;
|
||||
venus = devices.venus.names;
|
||||
charon = devices.charon.name;
|
||||
in
|
||||
{
|
||||
security = {
|
||||
|
@ -24,13 +24,13 @@ in
|
|||
noPass = true;
|
||||
users = [
|
||||
(
|
||||
if hostname == jupiter then
|
||||
if hostname == mars then
|
||||
user0
|
||||
else if hostname == ceres then
|
||||
user0
|
||||
else if hostname == callisto then
|
||||
else if hostname == charon then
|
||||
user1
|
||||
else if hostname == saturn then
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
""
|
||||
|
|
|
@ -16,24 +16,24 @@ let
|
|||
devices
|
||||
;
|
||||
hostname = config.networking.hostName;
|
||||
jupiter = devices.jupiter.name;
|
||||
mars = devices.mars.name;
|
||||
ceres = devices.ceres.name;
|
||||
saturn = devices.saturn.name;
|
||||
callisto = devices.callisto.name;
|
||||
venus = devices.venus.name;
|
||||
charon = devices.charon.name;
|
||||
|
||||
userLogic =
|
||||
if hostname == jupiter then
|
||||
if hostname == mars then
|
||||
user0
|
||||
else if hostname == ceres then
|
||||
user0
|
||||
else if hostname == saturn then
|
||||
else if hostname == venus then
|
||||
user2
|
||||
else
|
||||
"";
|
||||
in
|
||||
{
|
||||
users.users =
|
||||
if hostname == callisto then
|
||||
if hostname == charon then
|
||||
{ }
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue