From 292a7d201f86d0af8b744896418208e975ba47a8 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 10 May 2024 21:18:35 -0400 Subject: systems: deploy-rs -> nixinate for 12343894th time --- systems/atlas/default.nix | 14 +++++++++++++- systems/default.nix | 12 ++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) (limited to 'systems') diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix index 9f2f6b0..df55b62 100644 --- a/systems/atlas/default.nix +++ b/systems/atlas/default.nix @@ -1,4 +1,8 @@ -{modulesPath, ...}: { +{ + config, + modulesPath, + ... +}: { imports = [ (modulesPath + "/profiles/minimal.nix") ./hardware-configuration.nix @@ -7,6 +11,14 @@ ./teawiebot.nix ]; + _module.args.nixinate = { + host = config.networking.hostName; + sshUser = "root"; + buildOn = "remote"; + substituteOnTarget = true; + hermetic = false; + }; + archetypes.server.enable = true; base.networking.enable = false; diff --git a/systems/default.nix b/systems/default.nix index 441628f..c608e9c 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -9,14 +9,6 @@ }; }; - deploy = { - remoteBuild = true; - fastConnection = false; - nodes = self.lib.deploy.mapNodes [ - "atlas" - ]; - }; - nixosConfigurations = let stable = inputs.nixpkgs-stable.lib.nixosSystem; in { @@ -33,4 +25,8 @@ system = "aarch64-linux"; }; }; + + perSystem = {system, ...}: { + apps = (inputs.nixinate.nixinate.${system} self).nixinate; + }; } -- cgit v1.2.3