common: bake --impure into update alias
CrowdSec reads the ntfy topic URL from /var/secrets/ntfy-url at eval time via builtins.readFile. Pure flake mode forbids reading paths outside the source tree, so without --impure the read silently falls through to the placeholder URL on every rebuild. Adding --impure to both build and switch keeps the secret-file pattern working. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
525147aa61
commit
a124f314d9
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
# Shell aliases (work in both bash and fish)
|
# Shell aliases (work in both bash and fish)
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
update = "bash -c 'OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild build $@ --flake github:ediblerope/nixos-config && sudo nixos-rebuild switch $@ --flake github:ediblerope/nixos-config && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true) && command -v matugen &>/dev/null && matugen image ~/.local/share/backgrounds/wallpaper.png --source-color-index 0 -m dark || true' --";
|
update = "bash -c 'OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild build $@ --impure --flake github:ediblerope/nixos-config && sudo nixos-rebuild switch $@ --impure --flake github:ediblerope/nixos-config && nvd diff $OLD_SYSTEM /run/current-system && (command -v record-update &>/dev/null && record-update $OLD_SYSTEM /run/current-system || true) && command -v matugen &>/dev/null && matugen image ~/.local/share/backgrounds/wallpaper.png --source-color-index 0 -m dark || true' --";
|
||||||
clean = "sudo nix-collect-garbage -d";
|
clean = "sudo nix-collect-garbage -d";
|
||||||
ll = "ls -alh";
|
ll = "ls -alh";
|
||||||
clear = "command clear";
|
clear = "command clear";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue