No description
Find a file
2025-02-09 09:34:42 -05:00
hosts add lighthouse user to lighthouse 2025-01-29 13:56:43 -05:00
infrastructure pull down the s3 we goin to r2 2025-02-09 09:34:42 -05:00
modules attic 2025-02-09 01:05:51 -05:00
screenshots test waybar in nix 2024-12-29 11:20:10 -05:00
.gitignore gitignore tplan files 2025-02-08 01:46:17 +00:00
.terraform.lock.hcl bootstrap terraform tfstate into s3 bucket 2025-02-07 15:13:17 -05:00
flake.lock update secrets input 2025-02-09 00:10:48 -05:00
flake.nix working on provisioning secrets for hosts 2025-02-07 17:03:52 -05:00
LICENSE Push license 2024-09-18 22:41:58 -04:00
README.md update readme 2025-02-07 15:14:27 -05:00
shell.nix morph doesnt suit our usecase 2025-02-07 21:58:06 -05:00

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 <disk config path>

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

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

networking.useDHCP = nixpkgs.lib.mkForce false;
services.cloud-init = {
    enable = true;
    network.enable = true;
};

AWS

You will need to import the following module to be able to build NixOS on EC2: "${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"