-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
57 lines (49 loc) · 1.62 KB
/
home.nix
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
49
50
51
52
53
54
55
56
57
{ config, lib, ... }:
{
imports = [
# <catppuccin/modules/home-manager>
./shell
./graphical
./miscpkgs.nix
./nix.nix
./node.nix
# ./system.nix
./local.nix
];
targets.genericLinux.enable = !builtins.pathExists /etc/nixos;
home = {
# Home Manager needs a bit of information about you and the paths it should
# manage.
username = builtins.getEnv "USER";
homeDirectory = builtins.getEnv "HOME";
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
stateVersion = "23.11"; # Please read the comment before changing.
sessionVariables = {
XCURSOR_PATH =
lib.mkIf (config.targets.genericLinux.enable && builtins.isNull config.home.pointerCursor)
(
lib.mkForce "${config.xdg.dataHome}/icons:${config.home.homeDirectory}/icons:/usr/share/icons:/usr/share/pixmaps"
);
env_sources = ''''${env_sources+$env_sources,}home-manager'';
};
preferXdgDirectories = true;
};
xdg.userDirs = {
enable = true;
extraConfig = {
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
services.home-manager.autoUpgrade = {
enable = true;
frequency = "hourly";
};
}