adding gui group to hosts, fixing sshopts

This commit is contained in:
kat witch 2021-03-17 02:48:21 +00:00
parent 29e977ad00
commit d47650d67a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 4 additions and 3 deletions

View file

@ -2,10 +2,9 @@
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
* run `./nyx install <hostname>`.
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.

View file

@ -11,6 +11,7 @@
];
deploy.profiles = [ "gui" "sway" "kat" "private" ];
deploy.groups = [ "gui" ];
deploy.ssh.host = "192.168.1.135";
# graphics tablet

View file

@ -4,6 +4,7 @@
imports = [ ./hardware.nix ../../services/zfs.nix ];
deploy.profiles = [ "gui" "sway" "kat" "laptop" "private" ];
deploy.groups = [ "gui" ];
deploy.ssh.host = "192.168.1.92";
boot.loader.systemd-boot.enable = true;

View file

@ -59,7 +59,7 @@ in {
#!${pkgs.runtimeShell}
set -xeo pipefail
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 ${
builtins.unsafeDiscardStringContext config.system.build.toplevel.drvPath
} -o result-${config.networking.hostName}