summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorKj Tsanaktsidis <kjtsanaktsidis@groq.com>2026-01-09 17:35:26 +1100
committerKj Tsanaktsidis <kjtsanaktsidis@groq.com>2026-01-09 17:35:26 +1100
commit9c0398d0e8585149479ab84ec705f04da97a0812 (patch)
tree3b77e445ffe2d9a32fa27e8c61030b7505a8d556 /flake.nix
parent43bf226ea2a9e09d7221e7474473c4d8c4f2a29b (diff)
deploy-rs
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 13 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index af40da0..8db62ff 100644
--- a/flake.nix
+++ b/flake.nix
@@ -15,11 +15,13 @@
inputs.lanzaboote.url = "github:nix-community/lanzaboote/v1.0.0";
inputs.lanzaboote.inputs.nixpkgs.follows = "nixpkgs-stable";
inputs.determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
- inputs.colmena.url = "github:zhaofengli/colmena";
+ inputs.deploy-rs.url = "github:serokell/deploy-rs";
+ inputs.deploy-rs.inputs.nixpkgs.follows = "nixpkgs-stable";
- outputs = { self, nixpkgs-stable, nixos-anywhere, lanzaboote, colmena, ... }@inputs:
+ outputs = { self, nixpkgs-stable, nixos-anywhere, lanzaboote, deploy-rs, ... }@inputs:
let
nixpkgs = nixpkgs-stable;
+ nixpkgsFor = system: import nixpkgs { inherit system; };
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
@@ -32,10 +34,14 @@
];
};
- colmenaHive = colmena.lib.makeHive {
- meta.nixpkgs = nixpkgs;
- labsrv01 = {
- nixosConfiguration = self.nixosConfigurations.labsrv01;
+ deploy.nodes.labsrv01 = {
+ hostname = "labsrv01";
+ magicRollback = false;
+ profiles.system = {
+ sshUser = "kjtsanaktsidis";
+ interactiveSudo = true;
+ user = "root";
+ path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.labsrv01;
};
};
@@ -73,7 +79,7 @@
pkgs.ruby
pkgs.age
pkgs.mkpasswd
- inputs.colmena.packages.${system}.colmena
+ inputs.deploy-rs.packages.${system}.default
self.packages.${system}.nixos-update
];
};