diff options
Diffstat (limited to 'hosts/default.nix')
| -rw-r--r-- | hosts/default.nix | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 77da64a..41c0bc4 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -56,6 +56,36 @@ in { nixos-wsl.nixosModules.wsl ]; }; + atlas = { + builder = nixpkgs.lib.nixosSystem; + inherit (common) specialArgs; + system = "aarch64-linux"; + + modules = [ + agenix.nixosModules.default + (import "${self}/modules/base") + (import "${self}/modules/nixos") + (import "${self}/modules/server") + + { + age = { + identityPaths = ["/etc/age/key"]; + secrets = { + rootPassword.file = "${self}/users/_secrets/rootPassword.age"; + atlasPassword.file = "${self}/users/_secrets/atlasPassword.age"; + }; + }; + + _module.args.nixinate = { + host = "164.152.18.102"; + sshUser = "atlas"; + buildOn = "remote"; + substituteOnTarget = true; + hermetic = false; + }; + } + ]; + }; p-body = { builder = nixpkgs.lib.nixosSystem; inherit (common) specialArgs system; @@ -65,6 +95,7 @@ in { guzzle_api.nixosModules.guzzle_api (import "${self}/modules/base") (import "${self}/modules/nixos") + (import "${self}/modules/server") { age = { @@ -75,8 +106,6 @@ in { }; }; - nixos.enable = true; - _module.args.nixinate = { host = "167.99.145.73"; sshUser = "p-body"; |
