Nix configurations for my homelab
at main 1.3 kB view raw
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 home = { 29 sessionPath = [ "${config.home.homeDirectory}/.local/bin" ]; 30 sessionVariables = { 31 ENV = "${config.xdg.configHome}/loksh/rc"; 32 HISTCONTROL = "ignoredups:ignorespace"; 33 HISTFILE = "${config.xdg.cacheHome}/loksh_history"; 34 SLURP_ARGS = "-b 00000040 -w 0"; 35 }; 36 }; 37 38 home.stateVersion = "24.05"; 39}