From 280e1bbe5e733128a451260685cc8ecd10a042a3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 17 Oct 2026 21:53:43 +1300 Subject: feat: Dendritic pattern This re-write was done with the help of claude, and still needs a decent amount of changes before it properly follows the dendritic pattern --- modules/deploy.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/deploy.nix (limited to 'modules/deploy.nix') diff --git a/modules/deploy.nix b/modules/deploy.nix new file mode 100644 index 0000000..7cda026 --- /dev/null +++ b/modules/deploy.nix @@ -0,0 +1,30 @@ +{ 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; +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; + }; + }; + + perSystem = + { system, ... }: + { + checks = inputs.deploy-rs.lib.${system}.deployChecks deployCfg; + }; +} -- cgit v1.3.1