ljkdasjlasdklj
This commit is contained in:
17
justfile
17
justfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user