mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 01:44:40 +02:00
nixinate: migrate from deploy-rs
This commit is contained in:
parent
1f940b9852
commit
de5fd563c3
8 changed files with 65 additions and 46 deletions
|
@ -1,24 +0,0 @@
|
|||
{ 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";
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
./disko-config.nix
|
||||
./hardware-configuration.nix
|
||||
./network.nix
|
||||
./nixinate.nix
|
||||
./services.nix
|
||||
./syncthing.nix
|
||||
./system.nix
|
||||
|
|
9
machines/newton/nixinate.nix
Normal file
9
machines/newton/nixinate.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
_: {
|
||||
_module.args.nixinate = {
|
||||
host = "buehler.rocks";
|
||||
sshUser = "felix";
|
||||
buildOn = "remote";
|
||||
substituteOnTarget = true;
|
||||
hermetic = true;
|
||||
};
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
./disko-config.nix
|
||||
./hardware-configuration.nix
|
||||
./network.nix
|
||||
./nixinate.nix
|
||||
./services.nix
|
||||
./syncthing.nix
|
||||
./system.nix
|
||||
|
|
9
machines/serverle/nixinate.nix
Normal file
9
machines/serverle/nixinate.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
_: {
|
||||
_module.args.nixinate = {
|
||||
host = "serverle.local";
|
||||
sshUser = "felix";
|
||||
buildOn = "remote";
|
||||
substituteOnTarget = true;
|
||||
hermetic = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue