diff options
| author | seth <[email protected]> | 2024-05-10 21:18:35 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-05-10 21:30:32 -0400 |
| commit | 292a7d201f86d0af8b744896418208e975ba47a8 (patch) | |
| tree | 6e7f78777db7881292b5ef2194e41dde048646d5 /systems | |
| parent | 1ec692c24c5b3345e6d7fe1445f2a51b1e322f03 (diff) | |
systems: deploy-rs -> nixinate for 12343894th time
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/atlas/default.nix | 14 | ||||
| -rw-r--r-- | systems/default.nix | 12 |
2 files changed, 17 insertions, 9 deletions
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; + }; } |
