mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
restructure folder organisation
This commit is contained in:
parent
599d55fa6a
commit
9cf7be677d
72 changed files with 95 additions and 98 deletions
24
machines/deploy.nix
Normal file
24
machines/deploy.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ self, ... }:
|
||||
let
|
||||
inherit (self.inputs) deploy-rs;
|
||||
mkNode = server: hostname: system: {
|
||||
inherit hostname;
|
||||
fastConnection = true;
|
||||
profiles.system.path =
|
||||
deploy-rs.lib.${system}.activate.nixos
|
||||
self.nixosConfigurations."${server}";
|
||||
};
|
||||
in
|
||||
{
|
||||
user = "root";
|
||||
sshUser = "felix";
|
||||
sshOpts = [ "-i" "~/.ssh/keys/local_ed25519" ];
|
||||
#sshOpts = [ "-p" "6158" "-i" "~/.ssh/keys/local_ed25519" ];
|
||||
remoteBuild = true;
|
||||
|
||||
nodes = {
|
||||
thinkman = mkNode "thinkman" "localhost" "x86_64-linux";
|
||||
newton = mkNode "newton" "buehler.rocks" "x86_64-linux";
|
||||
serverle = mkNode "serverle" "serverle.local" "aarch64-linux";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue