ljkdasjlasdklj

This commit is contained in:
2025-11-14 19:06:59 +01:00
parent 5b8e2ff529
commit b2e9e284b7
6 changed files with 39 additions and 18 deletions

View File

@@ -108,6 +108,23 @@ push $hostname=`just _a_host` cmd=`gum choose test switch boot --header "Select
set -x; NIX_NO_NOM=1 nixos-rebuild {{cmd}} --flake .#"$hostname" --target-host "root@$target_host" --use-substitutes
fi
home-build *_:
#!/usr/bin/env -S bash -euo pipefail
# home-manager build --flake .#nixosConfigurations.$(hostname).config.home-manager.users.$(whoami)
nix build .#nixosConfigurations."$(hostname)".config.home-manager.users."$(whoami)".home.activationPackage "${@:1}"
# TODO: fallback to .#homeConfigurations.$(whoami) ?
# TODO: alternative behaviour for system-manager and nix-darwin
home-build-diff: home-build
#!/usr/bin/env -S bash -euo pipefail
# nvd diff /home/pbsds/.local/state/home-manager/gcroots/current-home result # python based, slow
dix /home/pbsds/.local/state/home-manager/gcroots/current-home result # rust based, fast, nixos-unstable only
home-switch *_:
#!/usr/bin/env -S bash -euo pipefail
# home-manager switch --flake .#nixosConfigurations.$(hostname).config.home-manager.users.$(whoami)
nix run .#nixosConfigurations."$(hostname)".config.home-manager.users."$(whoami)".home.activationPackage "${@:1}"
# test-files $hostname=`just _a_host` *filenames:
# #!/usr/bin/env -S bash -euo pipefail
# # TODO: remember previous choices