diff options
| author | seth <[email protected]> | 2023-04-25 21:59:08 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-25 22:01:13 -0400 |
| commit | 3ae1457bc45a0cc08b30cc63b92f47eecff56a14 (patch) | |
| tree | 5b6fc8c8708803a6e5ac6082666f55b1917d9b94 /hosts/default.nix | |
| parent | 4e397cca0363f0c2b7ff53785ad0c3f63194ee07 (diff) | |
hosts: init atlas
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"; |
