extend node defaults

use x86_64-linux as the default system, and ceru-build as the default
ssh user
This commit is contained in:
do butterflies cry? 2026-01-15 12:45:47 +10:00
parent 0fe6007716
commit da6cac7511
2 changed files with 6 additions and 10 deletions

View file

@ -23,17 +23,12 @@
mapNodes mapNodes
; ;
inherit
(lib)
nixosSystem
;
mkNexus' = config: rec { mkNexus' = config: rec {
nixosConfigurations = mapNodes ( nixosConfigurations = mapNodes (
nodeName: node: nodeName: node:
nixosSystem { lib.nixosSystem {
system = node.system; system = node.system;
modules = node.modules; modules = [./hosts/${nodeName}] ++ node.extraModules;
# nix passes these to every single module # nix passes these to every single module
specialArgs = specialArgs =

View file

@ -22,8 +22,9 @@
Ensure `cerulean.nexus.nodes.${name}.${path}` exists under your call to `cerulean.mkNexus`. Ensure `cerulean.nexus.nodes.${name}.${path}` exists under your call to `cerulean.mkNexus`.
''); '');
in { in {
system = missing "its system type" "system"; # intentionally left missing!! (to raise errors) # system = missing "its system type" "system"; # intentionally left missing!! (to raise errors)
modules = missing "its required modules" "modules"; system = "x86_64-linux"; # sane default (i hope...)
extraModules = [];
specialArgs = Terminal {}; specialArgs = Terminal {};
deploy = { deploy = {
@ -41,7 +42,7 @@
ssh = { ssh = {
host = missing "an SSH hostname (domain name or ip address) for deployment" "deploy.ssh.host"; host = missing "an SSH hostname (domain name or ip address) for deployment" "deploy.ssh.host";
user = missing "an SSH username for deployment" "deploy.ssh.user"; user = "ceru-build"; # ceru-build is the default connection user
port = 22; port = 22;
opts = []; opts = [];
}; };