No description
- Nix 98.7%
- Shell 1.3%
| .forgejo/workflows | (workflows) use self-hosted runner | |
| hosts | (vulcan) add self-hosted runner | |
| lib | single source of truth for public keys | |
| modules | format all files with alejandra | |
| packages | (chore): update nixpkgs | |
| scripts | Add autoupdate of caddy hashes | |
| secrets | (vulcan) add self-hosted runner | |
| users | format all files with alejandra | |
| .gitignore | support work computer | |
| deploy.nix | (deploy) add vulcan to deploy config | |
| flake.lock | (vulcan) add self-hosted runner | |
| flake.nix | (vulcan) add self-hosted runner | |
| README.md | Update README | |
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.nixdisko-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