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
;
inherit
(lib)
nixosSystem
;
mkNexus' = config: rec {
nixosConfigurations = mapNodes (
nodeName: node:
nixosSystem {
lib.nixosSystem {
system = node.system;
modules = node.modules;
modules = [./hosts/${nodeName}] ++ node.extraModules;
# nix passes these to every single module
specialArgs =

View file

@ -22,8 +22,9 @@
Ensure `cerulean.nexus.nodes.${name}.${path}` exists under your call to `cerulean.mkNexus`.
'');
in {
system = missing "its system type" "system"; # intentionally left missing!! (to raise errors)
modules = missing "its required modules" "modules";
# system = missing "its system type" "system"; # intentionally left missing!! (to raise errors)
system = "x86_64-linux"; # sane default (i hope...)
extraModules = [];
specialArgs = Terminal {};
deploy = {
@ -41,7 +42,7 @@
ssh = {
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;
opts = [];
};