From 031e7a8013d541d205a47ce06eb1701fc3f1a05d Mon Sep 17 00:00:00 2001 From: oqyude Date: Fri, 31 Oct 2025 11:22:24 +0300 Subject: [PATCH] ref --- deploy.nix | 23 +++++++++++++++++++++++ flake.nix | 23 ++--------------------- 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 deploy.nix diff --git a/deploy.nix b/deploy.nix new file mode 100644 index 0000000..2e2e832 --- /dev/null +++ b/deploy.nix @@ -0,0 +1,23 @@ +{ inputs, ... }@flakeContext: +{ + deploy = { + sshUser = "oqyude"; + user = "root"; + nodes = { + sapphira = { + hostname = "sapphira"; + profiles.system = { + path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.sapphira; + }; + }; + otreca = { + hostname = "otreca"; + profiles.system = { + path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.otreca; + }; + }; + }; + }; + # This is highly advised, and will prevent many possible mistakes + checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib; +} diff --git a/flake.nix b/flake.nix index cb82817..bf6c1c8 100755 --- a/flake.nix +++ b/flake.nix @@ -109,29 +109,10 @@ flakeContext = { inherit inputs; }; in { - deploy = { - sshUser = "oqyude"; - user = "root"; - nodes = { - sapphira = { - hostname = "sapphira"; - profiles.system = { - path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.sapphira; - }; - }; - otreca = { - hostname = "otreca"; - profiles.system = { - path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.otreca; - }; - }; - }; - }; - # This is highly advised, and will prevent many possible mistakes - checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib; } - // (import ./home flakeContext) // (import ./configurations flakeContext) + // (import ./deploy.nix flakeContext) + // (import ./home flakeContext) // (import ./modules flakeContext) // (import ./pkgs flakeContext); }