mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
nebula test run on do
This commit is contained in:
parent
bac0bd0d8f
commit
892b5d1642
2 changed files with 32 additions and 5 deletions
18
README.md
18
README.md
|
|
@ -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;
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
|||
19
flake.nix
19
flake.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue