deploy-rs: Improve deployment
This commit is contained in:
parent
c0eecd0fb3
commit
43b53ee704
4 changed files with 16 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
{ nixpkgs, home-manager, inputs, ... }:
|
||||
{ nixpkgs, deploy-rs, home-manager, inputs, ... }:
|
||||
|
||||
let
|
||||
default-system = "aarch64-linux";
|
||||
|
@ -20,18 +20,14 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
rec {
|
||||
system = nixpkgs.lib.nixosSystem {
|
||||
system = default-system;
|
||||
modules = [
|
||||
({
|
||||
nixpkgs.overlays = nixpkgsConfig.overlays;
|
||||
nixpkgs.config = nixpkgsConfig.config;
|
||||
})
|
||||
|
||||
../hosts/adsb-antenna.nix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
nixpkgs = nixpkgsConfig;
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ rec {
|
|||
};
|
||||
|
||||
deployment = {
|
||||
hostname = "builder-attic";
|
||||
hostname = "attic";
|
||||
sshUser = "root";
|
||||
remoteBuild = true;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ rec {
|
|||
};
|
||||
|
||||
deployment = {
|
||||
hostname = "builder-mediaserver";
|
||||
hostname = "mediaserver";
|
||||
sshUser = "root";
|
||||
remoteBuild = true;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ rec {
|
|||
};
|
||||
|
||||
deployment = {
|
||||
hostname = "builder-sail";
|
||||
hostname = "sail";
|
||||
sshUser = "root";
|
||||
remoteBuild = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue