nix-config/modules/xdg/default.nix
2024-03-22 23:35:56 -07:00

21 lines
602 B
Nix

{ pkgs, lib, config, ... }:
with lib;
let cfg = config.modules.xdg;
in {
options.modules.xdg = { enable = mkEnableOption "xdg"; };
config = mkIf cfg.enable {
xdg.userDirs = {
enable = true;
documents = "$HOME/stuff/other/";
download = "$HOME/stuff/other/";
videos = "$HOME/stuff/other/";
music = "$HOME/stuff/music/";
pictures = "$HOME/stuff/pictures/";
desktop = "$HOME/stuff/other/";
publicShare = "$HOME/stuff/other/";
templates = "$HOME/stuff/other/";
};
};
}