mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
adding gui group to hosts, fixing sshopts
This commit is contained in:
parent
29e977ad00
commit
d47650d67a
4 changed files with 4 additions and 3 deletions
|
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
To provision a new host:
|
To provision a new host:
|
||||||
|
|
||||||
* add that host to the SSH config in programs.ssh
|
|
||||||
* create a config for that host that contains a deploy.ssh.host
|
* create a config for that host that contains a deploy.ssh.host
|
||||||
* run `./nyx install <hostname>`.
|
* run `./nyx install <hostname>`.
|
||||||
|
|
||||||
To rebuild a host:
|
To rebuild a host:
|
||||||
|
|
||||||
* run `./nyx build <hostname> <method>` where method is optional, can be... switch or boot or such.
|
* run `./nyx deploy <hostname> <method>` where method is optional, can be... switch or boot or such.
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
deploy.profiles = [ "gui" "sway" "kat" "private" ];
|
deploy.profiles = [ "gui" "sway" "kat" "private" ];
|
||||||
|
deploy.groups = [ "gui" ];
|
||||||
deploy.ssh.host = "192.168.1.135";
|
deploy.ssh.host = "192.168.1.135";
|
||||||
|
|
||||||
# graphics tablet
|
# graphics tablet
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [ ./hardware.nix ../../services/zfs.nix ];
|
imports = [ ./hardware.nix ../../services/zfs.nix ];
|
||||||
|
|
||||||
deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ];
|
deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ];
|
||||||
|
deploy.groups = [ "gui" ];
|
||||||
deploy.ssh.host = "192.168.1.92";
|
deploy.ssh.host = "192.168.1.92";
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ in {
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
set -xeo pipefail
|
set -xeo pipefail
|
||||||
export PATH=${with pkgs; lib.makeBinPath [ coreutils openssh nix ]}
|
export PATH=${with pkgs; lib.makeBinPath [ coreutils openssh nix ]}
|
||||||
export NIX_SSHOPTS="$NIX_SSHOPTS -p${toString cfg.ssh.port}"
|
export NIX_SSHOPTS="-p${toString cfg.ssh.port}"
|
||||||
nix build ${
|
nix build ${
|
||||||
builtins.unsafeDiscardStringContext config.system.build.toplevel.drvPath
|
builtins.unsafeDiscardStringContext config.system.build.toplevel.drvPath
|
||||||
} -o result-${config.networking.hostName}
|
} -o result-${config.networking.hostName}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue