nix-dotfiles/modules/xdg.nix

27 lines
577 B
Nix

{ pkgs, ... }:
{
config = {
hm.xdg.enable = true;
hm.xdg.userDirs = rec {
enable = true;
createDirectories = true;
desktop = "$HOME/desktop";
documents = "$HOME/documents";
download = "$HOME/downloads";
music = "$HOME/music";
pictures = "$HOME/pictures";
publicShare = "$HOME/public";
templates = "$HOME/templates";
videos = "$HOME/videos";
extraConfig = {
screenshots = "${pictures}/screenshots";
};
};
environment.systemPackages = with pkgs; [
xdg-utils
];
};
}