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
|
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 =
|
||||||
|
|
|
||||||
|
|
@ -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 = [];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue