aboutsummaryrefslogtreecommitdiff
path: root/modules/deploy.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/deploy.nix')
-rw-r--r--modules/deploy.nix53
1 files changed, 29 insertions, 24 deletions
diff --git a/modules/deploy.nix b/modules/deploy.nix
index 7cda026..20188a3 100644
--- a/modules/deploy.nix
+++ b/modules/deploy.nix
@@ -1,30 +1,35 @@
{ inputs, config, ... }:
let
- system = "x86_64-linux";
- pkgs = import inputs.nixpkgs { inherit system; };
- deployPkgs = import inputs.nixpkgs {
- inherit system;
- overlays = [
- inputs.deploy-rs.overlays.default # or deploy-rs.overlays.default
- (self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
- ];
- };
- deployCfg = config.flake.deploy;
+ system = "x86_64-linux";
+ pkgs = import inputs.nixpkgs { inherit system; };
+ deployPkgs = import inputs.nixpkgs {
+ inherit system;
+ overlays = [
+ inputs.deploy-rs.overlays.default # or deploy-rs.overlays.default
+ (self: super: {
+ deploy-rs = {
+ inherit (pkgs) deploy-rs;
+ lib = super.deploy-rs.lib;
+ };
+ })
+ ];
+ };
+ deployCfg = config.flake.deploy;
in
{
- flake.deploy.nodes.nixnode = {
- hostname = "tehbox.org";
- profiles.system = {
- user = "root";
- sshUser = "boss";
- interactiveSudo = true;
- path = deployPkgs.deploy-rs.lib.activate.nixos config.flake.nixosConfigurations.nixnode;
- };
- };
+ flake.deploy.nodes.nixnode = {
+ hostname = "tehbox.org";
+ profiles.system = {
+ user = "root";
+ sshUser = "boss";
+ interactiveSudo = true;
+ path = deployPkgs.deploy-rs.lib.activate.nixos config.flake.nixosConfigurations.nixnode;
+ };
+ };
- perSystem =
- { system, ... }:
- {
- checks = inputs.deploy-rs.lib.${system}.deployChecks deployCfg;
- };
+ perSystem =
+ { system, ... }:
+ {
+ checks = inputs.deploy-rs.lib.${system}.deployChecks deployCfg;
+ };
}