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 devices
; ;
hostname = config.networking.hostName; hostname = config.networking.hostName;
jupiter = devices.jupiter.name; mars = devices.mars.name;
ceres = devices.ceres.name; ceres = devices.ceres.name;
saturn = devices.saturn.names; venus = devices.venus.names;
callisto = devices.callisto.name; charon = devices.charon.name;
in in
{ {
security = { security = {
@ -24,13 +24,13 @@ in
noPass = true; noPass = true;
users = [ users = [
( (
if hostname == jupiter then if hostname == mars then
user0 user0
else if hostname == ceres then else if hostname == ceres then
user0 user0
else if hostname == callisto then else if hostname == charon then
user1 user1
else if hostname == saturn then else if hostname == venus then
user2 user2
else else
"" ""

View file

@ -16,24 +16,24 @@ let
devices devices
; ;
hostname = config.networking.hostName; hostname = config.networking.hostName;
jupiter = devices.jupiter.name; mars = devices.mars.name;
ceres = devices.ceres.name; ceres = devices.ceres.name;
saturn = devices.saturn.name; venus = devices.venus.name;
callisto = devices.callisto.name; charon = devices.charon.name;
userLogic = userLogic =
if hostname == jupiter then if hostname == mars then
user0 user0
else if hostname == ceres then else if hostname == ceres then
user0 user0
else if hostname == saturn then else if hostname == venus then
user2 user2
else else
""; "";
in in
{ {
users.users = users.users =
if hostname == callisto then if hostname == charon then
{ } { }
else else
{ {

View file

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

View file

@ -8,17 +8,17 @@ let
devices devices
; ;
hostname = config.networking.hostName; hostname = config.networking.hostName;
jupiter = devices.jupiter.name; mars = devices.mars.name;
ceres = devices.ceres.name; ceres = devices.ceres.name;
saturn = devices.saturn.name; venus = devices.venus.name;
callisto = devices.callisto.name; charon = devices.charon.name;
userLogic = userLogic =
if hostname == jupiter then if hostname == mars then
user0 user0
else if hostname == ceres then else if hostname == ceres then
user0 user0
else if hostname == saturn then else if hostname == venus then
user2 user2
else else
""; "";
@ -32,7 +32,7 @@ in
generateKey = false; generateKey = false;
}; };
secrets = secrets =
if hostname == callisto then if hostname == charon then
{ } { }
else else
{ {