summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/atlas/default.nix14
-rw-r--r--systems/default.nix12
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;
+ };
}