{
home.preferXdgDirectories = true;
xdg = {
enable = true;
dataHome = "~/.local/share";
stateHome = "~/.local/state";
cacheHome = "~/.cache";
configHome = "~/.config";
mime = {
enable = true;
};
mimeApps = {
enable = true;
defaultApplications = {
"application/pdf" = "org.pwmt.zathura-pdf.desktop";
};
};
systemDirs = {
data = [
"/usr/share"
"/usr/local/share"
];
config = [ "/etc/xdg" ];
};
userDirs = {
enable = true;
createDirectories = true;
};
};
}
The above is my xdgsettings.nix. The result of nixos-re build switch
is
error: A definition for option `home-manager.users.krish.xdg.cacheHome' is not of type `path'. Definition values:
- In `/nix/store/qqag6l1n0cfdw8lx4y5qhcs8jbiacj8v-source/modules/user/xdgsettings.nix': "~/.cache"
But I am just giving the default value as is.