summaryrefslogtreecommitdiff
path: root/users/timmy/repos.nix
blob: eed0219943bf5002e7165f52621dd8192ebfd28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ config, ... }: let
	server = "https://git.tjkeller.xyz/";
	# TODO find how to get home manager config instead of nixos config
	#srcHome = "${config.xdg.userDirs.documents}/src";
	#configHome = config.xdg.configHome;
	home = "/home/timmy";
	srcHome = "${home}/docs/src";
	configHome = "${home}/.config";
in {
	config = {
		home-manager.users.timmy = {
			reposync.enable = true;
			reposync.outOfStoreGitRepository = {
				config = {
					inherit server;
					repository = "dotconfig";
					targetPrefix = srcHome;
					stow.".".targetPrefix = configHome;
				};
				nixos = {
					inherit server;
					targetPrefix = srcHome;
				};
				scripts = {
					inherit server;
					targetPrefix = srcHome;
					stow."*".target = ".local/bin";
				};
				userscripts = {
					inherit server;
					targetPrefix = srcHome;
				};
				awesome = {
					inherit server;
					targetPrefix = configHome;
				};
				nvim = {
					inherit server;
					targetPrefix = configHome;
				};
				zsh = {
					inherit server;
					targetPrefix = configHome;
				};
			};
		};
	};
}