mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
introduce deploy-rs
This commit is contained in:
parent
eff5f20fa9
commit
33a2c28aad
4 changed files with 86 additions and 66 deletions
25
flake.nix
25
flake.nix
|
@ -14,6 +14,13 @@
|
|||
|
||||
impermanence.url = "github:nix-community/impermanence";
|
||||
|
||||
deploy-rs = {
|
||||
url = "github:serokell/deploy-rs";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
|
@ -50,6 +57,7 @@
|
|||
, nix-index-database
|
||||
, sops-nix
|
||||
, impermanence
|
||||
, deploy-rs
|
||||
, nix-colors
|
||||
, nixos-hardware
|
||||
, lanzaboote
|
||||
|
@ -136,5 +144,22 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
deploy.nodes = {
|
||||
nuc = {
|
||||
hostname = "nuc";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.nuc;
|
||||
};
|
||||
};
|
||||
falkenstein-1 = {
|
||||
hostname = "falkenstein-1";
|
||||
profiles.system = {
|
||||
sshUser = "root";
|
||||
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.falkenstein-1;
|
||||
};
|
||||
};
|
||||
};
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue