aboutsummaryrefslogtreecommitdiff
path: root/home-manager/dotfiles/default.nix
blob: 875c110f8795f6f31642a247407f7a245861b3d9 (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
{ config, pkgs, ... }:
	let
		ghosttyPath = "${config.home.homeDirectory}/.nix/dotfiles/ghostty";
		helixPath = "${config.home.homeDirectory}/.nix/dotfiles/helix";
		labwcPath = "${config.home.homeDirectory}/.nix/dotfiles/labwc";
		makoPath = "${config.home.homeDirectory}/.nix/dotfiles/mako";
		swappyPath = "${config.home.homeDirectory}/.nix/dotfiles/swappy";
		waybarPath = "${config.home.homeDirectory}/.nix/dotfiles/waybar";

		# theming
		themesPath = "${config.home.homeDirectory}/.nix/dotfiles/themes";
		fontPath = "${config.home.homeDirectory}/.nix/dotfiles/fonts";
	in {
		xdg = {
			configFile = {
				# configFile points to ~/.config
				"ghostty".source = config.lib.file.mkOutOfStoreSymlink ghosttyPath;
				"helix".source = config.lib.file.mkOutOfStoreSymlink helixPath;
				"labwc".source = config.lib.file.mkOutOfStoreSymlink labwcPath;
				"mako".source = config.lib.file.mkOutOfStoreSymlink makoPath;
				"swappy".source = config.lib.file.mkOutOfStoreSymlink swappyPath;
				"waybar".source = config.lib.file.mkOutOfStoreSymlink waybarPath;
			};

			dataFile = {
				# dataFile points to ~/.local/share
				"themes".source = config.lib.file.mkOutOfStoreSymlink themesPath;
				"fonts".source = config.lib.file.mkOutOfStoreSymlink fontPath;
			};
		};
	}
	
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.