feat: added other systems

This commit is contained in:
Nick 2025-03-01 15:55:23 -06:00
parent 9c41180795
commit aca3a1f3c8
4 changed files with 21 additions and 21 deletions

View file

@ -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
""

View file

@ -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
{

View file

@ -6,7 +6,7 @@
}:
let
inherit (flake.config.machines.devices)
jupiter
mars
ceres
;
inherit (flake.config.services.instances)
@ -63,7 +63,7 @@ in
user = service.name;
}
// (
if hostname == jupiter.name then
if hostname == mars.name then
{
models = service.paths.path1;
# acceleration = "rocm";
@ -98,7 +98,7 @@ in
systemd.tmpfiles.rules = [
(
if hostname == jupiter.name then
if hostname == mars.name then
"Z ${service.paths.path1} 0777 ${service.name} ${service.name} -"
else
"Z ${service.paths.path0} 0755 ${service.name} ${service.name} -"

View file

@ -8,17 +8,17 @@ 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
"";
@ -32,7 +32,7 @@ in
generateKey = false;
};
secrets =
if hostname == callisto then
if hostname == charon then
{ }
else
{