1
0
Fork
You've already forked nix
0
No description
  • Nix 98.7%
  • Shell 1.3%
2026年07月14日 11:53:19 +02:00
.forgejo/workflows (workflows) use self-hosted runner 2026年07月14日 11:53:19 +02:00
hosts (vulcan) add self-hosted runner 2026年07月14日 11:39:35 +02:00
lib single source of truth for public keys 2026年07月05日 14:05:19 +02:00
modules format all files with alejandra 2026年04月20日 19:36:33 +02:00
packages (chore): update nixpkgs 2026年06月28日 19:41:51 +02:00
scripts Add autoupdate of caddy hashes 2026年05月30日 23:58:52 +02:00
secrets (vulcan) add self-hosted runner 2026年07月14日 11:39:35 +02:00
users format all files with alejandra 2026年04月20日 19:36:33 +02:00
.gitignore support work computer 2025年08月04日 16:57:22 +02:00
deploy.nix (deploy) add vulcan to deploy config 2026年05月14日 16:53:15 +02:00
flake.lock (vulcan) add self-hosted runner 2026年07月14日 11:39:35 +02:00
flake.nix (vulcan) add self-hosted runner 2026年07月14日 11:39:35 +02:00
README.md Update README 2026年04月16日 19:50:31 +02:00

nix configuration

Develop

Enter a development shell with everything needed

nix develop -c fish # or whatever shell you are using

Build

Build with flake

# build
nixos-rebuild build --flake .#HOST
# switch to it on local machine
nixos-rebuild switch --flake .#HOST
# remote deploy
nixos-rebuild switch --flake .#HOST--target-host USER@HOST

NixOS Live CD

# Build the ISO
nix build .#nixosConfigurations.iso.config.system.build.isoImage
# Test with QEMU
qemu-system-x86_64 -enable-kvm -m 256 -cdrom result/iso/nixos-*.iso

Deploy new VMs

Prepare both

  • configuration.nix
  • disko-config.nix

then run

nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./hosts/HOST/hardware-configuration.nix --flake .#HOST --target-host nixos@IP