nebula test run on do

This commit is contained in:
TheWanderingCrow 2025-01-30 12:03:56 -05:00
parent bac0bd0d8f
commit 892b5d1642
2 changed files with 32 additions and 5 deletions

View file

@ -13,3 +13,21 @@
## Deploying to the remote
Note: If you need to specify the ssh key, you may inject extra cli options to the ssh command via the NIX_SSHOPTS environment variable
* Anywhere from local: `nixos-rebuild switch --flake .#<host> --target-host root@<ipaddr> --use-remote-sudo`
## Vendor Specific Idiosyncrasies
### Digital Ocean
Digital Ocean assigns IPs through cloud init so we need to not use DHCP
```
networking.useDHCP = nixpkgs.lib.mkForce false;
services.cloud-init = {
enable = true;
network.enable = true;
# not strictly needed, just for good measure
datasource_list = [ "DigitalOcean" ];
datasource.DigitalOcean = { };sops.defaultSopsFile = inputs.nix-secrets.secrets.lighthouse1;
};
```

View file

@ -102,9 +102,9 @@
sops-nix.nixosModules.sops
];
};
##########################
# AWS Nebula Lighthouse1 #
##########################
#########################
# DO Nebula Lighthouse1 #
#########################
WCE-Lighthouse1 = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
@ -115,10 +115,19 @@
};
modules = [
./hosts/WCE-Lighthouse
"${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"
{
networking.hostName = "WCE-Lighthouse1";
sops.defaultSopsFile = inputs.nix-secrets.secrets.lighthouse1;
networking.useDHCP = nixpkgs.lib.mkForce false;
services.cloud-init = {
enable = true;
network.enable = true;
# not strictly needed, just for good measure
datasource_list = ["DigitalOcean"];
datasource.DigitalOcean = {};
sops.defaultSopsFile = inputs.nix-secrets.secrets.lighthouse1;
};
}
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops