aboutsummaryrefslogtreecommitdiff
path: root/scripts/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-10 13:56:28 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-10 13:56:28 -0700
commit8247d060a6cae65b2d63fd6bd3bf19ed9e66214c (patch)
treeb76329f5b7cc145d2f7bf5d8fd584790e18875f9 /scripts/default.nix
parentflake.lock: Update (diff)
downloadinfra-8247d060a6cae65b2d63fd6bd3bf19ed9e66214c.tar.gz
manage a DigitalOcean virtual machine with nixos
Add a new machine on DigitalOcean and provision it using terraform + nixos-anywhere. This takes care of bringing the machine up on nixos completely, and use a static SSH host key in order to configure wireguard at the same time.
Diffstat (limited to '')
-rw-r--r--scripts/default.nix4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/default.nix b/scripts/default.nix
index bf91760..90851df 100644
--- a/scripts/default.nix
+++ b/scripts/default.nix
@@ -2,23 +2,19 @@
pkgs,
system,
inputs,
- self,
}:
let
common = import ./common.nix { inherit pkgs; };
- infra = import ./infra.nix { inherit self pkgs; };
darwin = import ./darwin.nix { inherit pkgs system inputs; };
linux = import ./linux.nix { inherit pkgs system inputs; };
in
{
common = common;
- infra = infra;
darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ];
linux = if pkgs.lib.hasSuffix "linux" system then linux else [ ];
all =
common
- ++ infra
++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ])
++ (if pkgs.lib.hasSuffix "linux" system then linux else [ ]);
}