nix/user/home/Default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ const, username, homeDir, util, style, pkgs, setting, key, ... } @args: let
foot = import ./module/foot/Init.nix args;
mako = import ./module/mako/Init.nix args;
editorconfig = import ./module/editorconfig/Init.nix args;
btop = import ./module/top/btop/Init.nix args;
htop = import ./module/top/htop/Init.nix args;
2024-04-03 02:05:36 +03:00
in {
home-manager.backupFileExtension = "old";
home-manager.users.${username} = {
programs.home-manager.enable = true;
home.username = username;
home.homeDirectory = homeDir;
home.stateVersion = const.stateVersion;
home.file = {
2024-04-06 03:03:58 +03:00
".config/btop/btop.conf".text = btop.config;
".config/htop/htoprc".text = htop.config;
".config/mako/config".text = mako.config;
".config/foot/foot.ini".text = foot.config;
".editorconfig".text = editorconfig.config;
".parallel/will-cite".text = "";
"media/template".source = ./module/template;
};
# Directories.
xdg.userDirs = {
enable = true;
createDirectories = true;
desktop = "${homeDir}/";
documents = "${homeDir}/document/";
download = "${homeDir}/download/";
music = "${homeDir}/media/music/";
pictures = "${homeDir}/media/picture/";
publicShare = "${homeDir}/media/share/";
templates = "${homeDir}/media/template/";
videos = "${homeDir}/media/video/";
extraConfig = {
XDG_TMP_DIR = "${homeDir}/tmp/";
};
};
};
}