36 lines
774 B
Nix
36 lines
774 B
Nix
{ user, home }:
|
|
{ config, pkgs, ... }:
|
|
{
|
|
environment.persistence."/persist/user" = {
|
|
"${home}/Desktop" = { };
|
|
"${home}/Documents" = { };
|
|
"${home}/Downloads" = { };
|
|
"${home}/Music" = { };
|
|
"${home}/Pictures" = { };
|
|
"${home}/Templates" = { };
|
|
"${home}/Videos" = { };
|
|
"${home}/Games" = { };
|
|
"${home}/VMs" = { };
|
|
"${home}/git" = { };
|
|
};
|
|
|
|
home-manager.users.${user} = {
|
|
xdg = {
|
|
enable = true;
|
|
mimeApps.enable = true;
|
|
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
extraConfig = {
|
|
XDG_GAME_DIR = "${home}/Games";
|
|
XDG_VM_DIR = "${home}/VMs";
|
|
XDG_GIT_DIR = "${home}/git";
|
|
};
|
|
};
|
|
};
|
|
|
|
home.packages = with pkgs; [ xdg-utils ];
|
|
};
|
|
}
|