1
0
Fork 0

deploy-rs: Improve deployment

This commit is contained in:
Daniel Kempkens 2023-05-14 12:55:56 +02:00
parent c0eecd0fb3
commit 43b53ee704
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 16 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ nixpkgs, home-manager, inputs, ... }: { nixpkgs, deploy-rs, home-manager, inputs, ... }:
let let
default-system = "aarch64-linux"; default-system = "aarch64-linux";
@ -20,18 +20,14 @@ let
}; };
}; };
in in
{ rec {
system = nixpkgs.lib.nixosSystem { system = nixpkgs.lib.nixosSystem {
system = default-system; system = default-system;
modules = [ modules = [
({
nixpkgs.overlays = nixpkgsConfig.overlays;
nixpkgs.config = nixpkgsConfig.config;
})
../hosts/adsb-antenna.nix ../hosts/adsb-antenna.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
nixpkgs = nixpkgsConfig; nixpkgs = nixpkgsConfig;
nix.nixPath = [ "nixpkgs=${nixpkgs}" ]; nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
@ -42,4 +38,14 @@ in
} }
]; ];
}; };
deployment = {
hostname = "adsb-antenna";
sshUser = "root";
remoteBuild = true;
profiles.system = {
path = deploy-rs.lib.${default-system}.activate.nixos system;
};
};
} }

View file

@ -42,7 +42,7 @@ rec {
}; };
deployment = { deployment = {
hostname = "builder-attic"; hostname = "attic";
sshUser = "root"; sshUser = "root";
remoteBuild = true; remoteBuild = true;

View file

@ -42,7 +42,7 @@ rec {
}; };
deployment = { deployment = {
hostname = "builder-mediaserver"; hostname = "mediaserver";
sshUser = "root"; sshUser = "root";
remoteBuild = true; remoteBuild = true;

View file

@ -42,7 +42,7 @@ rec {
}; };
deployment = { deployment = {
hostname = "builder-sail"; hostname = "sail";
sshUser = "root"; sshUser = "root";
remoteBuild = true; remoteBuild = true;