summaryrefslogtreecommitdiff
path: root/modules/home/initial-home-setup.nix
blob: 2348b7972e27b6f1623eab5fbe61a3f173efd321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ 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="$HOME/.local/bin/misc:$PATH"
			run mimewiz  # already verbose
		'';
		createDirs = lib.hm.dag.entryAfter ["writeBoundary"] ''
			run mkdir -p $VERBOSE_ARG "${userDetails.home.downloads}"
		'';
	};
}