Removed work configuration

This commit is contained in:
Tim Schubert 2021-12-11 23:13:02 +01:00
parent b5c1342a9c
commit aca8c411cd
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
4 changed files with 1 additions and 88 deletions

View file

@ -36,7 +36,7 @@
tmpdir=$(mktemp -d)
export PATH=${pkgs.lib.makeBinPath [ pkgs.coreutils pkgs.nixFlakes pkgs.jq ]}
trap "rm -rf $tmpdir" EXIT
declare -A profiles=(["gorgon"]="home" ["timsch-nb"]="work")
declare -A profiles=(["gorgon"]="home")
profile=''${profiles[$HOSTNAME]:-common}
flake=$(nix flake metadata --json ${./.} | jq -r .url)
nix build --out-link "$tmpdir/result" "$flake#hmConfigurations.''${profile}.activationPackage" "$@"