module(just): Add dead-nix to check unused nix code

This commit is contained in:
ulic-youthlic 2025-06-24 21:42:12 +08:00
parent 07fc72c500
commit b497d6b938
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
36 changed files with 30 additions and 47 deletions

View file

@ -37,6 +37,9 @@ buildHome host=DEFAULT_HOST $USER=DEFAULT_USER:
@echo HOST: {{ host }}
nh home build -b backup {{ if host != DEFAULT_HOST { "-c \"" + USER + "@" + host + "\"" } else { "" } }} {{ FLAKE_HOME }}
deadNix:
nix run github:astro/deadnix -- . --exclude ./pkgs/_sources/generated.nix ./nixos/configurations/{Akun,Tytonidae,Cape}/hardware-configuration.nix
alias s := switch
alias u := update
alias d := deploy