diff --git a/README.md b/README.md index 896d604..f5c773a 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,32 @@ # Crow's NixOS configuration project - ## Proxmox/LXC target + `nix run github:nix-community/nixos-generators -- --format proxmox-lxc` ## Building the Live ISO + `nixos-generate --format install-iso --flake .#Parzival-Live -o result` ## Formatting disks with disko + `sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount ` ## 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 .# --target-host root@ --use-remote-sudo` + +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 .# --target-host root@ --use-remote-sudo` ## Vendor Specific Idiosyncrasies + ### Digital Ocean +You will need to import the following module to be able to build NixOS on DO: +`"${nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix"` + Digital Ocean assigns IPs through cloud init so we need to not use DHCP ``` @@ -32,4 +42,6 @@ services.cloud-init = { ``` ### AWS -You will need to import the following module to be able to build NixOS on EC2: `"${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"` + +You will need to import the following module to be able to build NixOS on EC2: +`"${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"` diff --git a/flake.nix b/flake.nix index a432906..90efde6 100644 --- a/flake.nix +++ b/flake.nix @@ -95,6 +95,7 @@ modules = [ ./hosts/WCE-Lighthouse + "${nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix" { networking.hostName = "WCE-Lighthouse1"; networking.useDHCP = nixpkgs.lib.mkForce false; @@ -103,10 +104,6 @@ services.cloud-init = { enable = true; network.enable = true; - - # not strictly needed, just for good measure - datasource_list = ["DigitalOcean"]; - datasource.DigitalOcean = {}; }; } ]