about summary refs log tree commit diff
path: root/profile/.profile.d/40_nix.sh
blob: ede32bf7c1bdee79bd8ed54ee566b50660794c15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

nix_sh="${HOME}/.nix-profile/etc/profile.d/nix.sh"

if [ -e "${nix_sh}" ]; then
	# shellcheck disable=SC1090
	. "${nix_sh}"

	export NIXPKGS_ALLOW_UNFREE="1"

	hm_session_vars="$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
	if [ -e "${hm_session_vars}" ]; then
		# shellcheck disable=SC1090
		. "${hm_session_vars}"
	fi
	unset hm_session_vars
fi

unset nix_sh

Consider giving Nix/NixOS a try! <3