Nix configurations for my homelab
1{ config, ... }:
2{
3 home = {
4 username = "mou";
5 homeDirectory = "/home/${config.home.username}";
6 };
7
8 xdg = {
9 enable = true;
10 cacheHome = "${config.home.homeDirectory}/.cache";
11 configHome = "${config.home.homeDirectory}/.config";
12 dataHome = "${config.home.homeDirectory}/.local/share";
13 stateHome = "${config.home.homeDirectory}/.local/state";
14 userDirs = {
15 enable = true;
16 desktop = "${config.home.homeDirectory}/misc/.desktop";
17 documents = "${config.home.homeDirectory}/doc";
18 download = "${config.home.homeDirectory}/dls";
19 music = "${config.home.homeDirectory}/aud";
20 pictures = "${config.home.homeDirectory}/pic";
21 publicShare = "${config.home.homeDirectory}/misc/.public";
22 templates = "${config.home.homeDirectory}/misc/.templates";
23 videos = "${config.home.homeDirectory}/vid";
24 };
25 };
26
27 fonts.fontconfig.enable = true;
28
29 home.sessionVariables = {
30 ENV = "${config.xdg.configHome}/loksh/rc";
31 HISTCONTROL = "ignoredups:ignorespace";
32 HISTFILE = "${config.xdg.cacheHome}/loksh_history";
33 PATH = "${config.home.homeDirectory}/.local/bin:$PATH";
34 SLURP_ARGS = "-b 00000040 -w 0";
35 };
36
37 home.stateVersion = "24.05";
38}