No description
Find a file
2025-04-07 12:30:34 -04:00
hosts add dragneel host 2025-03-25 07:39:26 -04:00
infrastructure update media bucket 2025-04-04 11:40:10 -04:00
modules add grocy to homepage 2025-04-07 12:30:34 -04:00
screenshots test waybar in nix 2024-12-29 11:20:10 -05:00
.envrc update media bucket 2025-04-04 11:40:10 -04:00
.gitignore update media bucket 2025-04-04 11:40:10 -04:00
.terraform.lock.hcl update media bucket 2025-04-04 11:40:10 -04:00
flake.lock update nvix 2025-04-04 14:57:24 -04:00
flake.nix add dragneel host 2025-03-25 07:39:26 -04:00
LICENSE Push license 2024-09-18 22:41:58 -04:00
README.md update readme for topology 2025-03-20 21:59:58 -04:00
shell.nix update media bucket 2025-04-04 11:40:10 -04: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>

Pushing systems to the binary cache

nix path-info -r .#nixosConfigurations.<hostname>.config.system.build.toplevel | attic push <your-attic-cache-name> --stdin

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

Generating Topology Files

nix build .#topology.x86_64-linux.config.output

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"