summaryrefslogtreecommitdiff
path: root/modules/home/initial-home-setup.nix
blob: 6aa6ac731c64ac25390c9a7d0a2b6d931f2b7db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, lib, pkgs, userDetails, ... }: {
	home.activation = {
		cloneRepos = lib.hm.dag.entryAfter ["writeBoundary"] ''
			export PATH="${config.home.path}/bin:$PATH"
			${builtins.readFile ./resources/activation-scripts/clone-repos.sh}
		'';
		linkZshProfile = lib.hm.dag.entryAfter ["writeBoundary"] ''
			run ln -sf $VERBOSE_ARG $HOME/.config/zsh/zprofile $HOME/.zprofile
		'';
		cleanupHome = lib.hm.dag.entryAfter ["writeBoundary"] ''
			run rm -f $VERBOSE_ARG $HOME/{.zcompdump,.zshrc,.zsh_history,.bash_history}
		'';
		mimewiz = lib.hm.dag.entryAfter ["writeBoundary"] ''
			export PATH="${pkgs.xdg-utils}/bin:$PATH"
			export PATH="$HOME/.local/bin/misc:$PATH"
			run mimewiz -i # already verbose
		'';
		createDirs = with userDetails.home; lib.hm.dag.entryAfter ["writeBoundary"] ''
			run mkdir -p $VERBOSE_ARG "${downloads}" "${documents}" "${pictures}"
		'';
	};
}