update flakes

This commit is contained in:
Tim Schubert 2021-11-14 01:05:47 +01:00
parent 83dc018a4f
commit 58cc357ad9
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
3 changed files with 15 additions and 22 deletions

View file

@ -39,7 +39,7 @@
declare -A profiles=(["gorgon"]="home" ["timsch-nb"]="work")
profile=''${profiles[$HOSTNAME]:-common}
flake=$(nix flake metadata --json ${./.} | jq -r .url)
nix build --show-trace --out-link "$tmpdir/result" "$flake#hmConfigurations.''${profile}.activationPackage" "$@"
nix build --out-link "$tmpdir/result" "$flake#hmConfigurations.''${profile}.activationPackage" "$@"
link=$(realpath $tmpdir/result)
$link/activate
'');