my nix configs
Find a file
Harald Hoyer cd99b128d4 feat: add preStart hook for nixos-upgrade service
Introduce a preStart hook to the nixos-upgrade systemd service to ensure the local repository is updated before upgrades by fetching and resetting to the origin's HEAD. This enhances the reliability and consistency of the upgrade process. Also, maintain the commented out old flake path for backward traceability.
2024-11-29 17:04:24 +01:00
.secrets refactor: update coturn.yaml structure 2024-09-17 10:21:56 +02:00
homes Remove unused configuration and commented code 2024-11-28 10:53:57 +01:00
lib nix fmt 2024-11-19 10:31:29 +01:00
modules feat(nixos): configure global git settings for systemd 2024-11-29 15:33:41 +01:00
overlays nix fmt 2024-11-19 10:31:29 +01:00
packages nix fmt 2024-11-19 10:31:29 +01:00
systems feat: add preStart hook for nixos-upgrade service 2024-11-29 17:04:24 +01:00
.gitattributes remove required from .gitattributes 2024-11-29 15:45:57 +01:00
.gitignore gitignore result 2024-03-21 15:24:51 +01:00
.sops.yaml A new start 2024-03-21 15:00:36 +01:00
flake.lock flake update 2024-11-29 16:11:31 +01:00
flake.nix feat(flake.nix): update Nixpkgs and Home Manager to 24.11 2024-11-28 08:53:56 +01:00
README.md chore: Update darwin-rebuild command in README 2024-07-19 13:39:45 +02:00

Install a system via nixos-anywhere

$ nix run github:numtide/nixos-anywhere -- \
  --flake 'git+https://git.hoyer.xyz/harald/nixcfg'.#hostname \
  root@hostname --no-reboot --tty -i $HOME/.ssh/id_ed25519
... enter disk password
$ ssh -t root@hostname systemd-cryptenroll /dev/luksdev --wipe-slot=tpm2 --tpm2-device=auto --tpm2-pcrs=1,15

nixos-rebuild remote git flake

$ nixos-rebuild --use-remote-sudo -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg boot

on darwin

$ darwin-rebuild -L --show-trace --refresh --flake git+https://git.hoyer.xyz/harald/nixcfg switch

home-manager remote git flake

$ nix --refresh run 'git+https://git.hoyer.xyz/harald/nixcfg' -- \
  switch -b backup --flake 'git+https://git.hoyer.xyz/harald/nixcfg'