extend node defaults
use x86_64-linux as the default system, and ceru-build as the default ssh user
This commit is contained in:
parent
0fe6007716
commit
da6cac7511
2 changed files with 6 additions and 10 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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 = [];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue