nixos-configuration/home/xdg.nix

22 lines
545 B
Nix
Raw Normal View History

2023-03-06 12:10:39 +01:00
{ config, ... }:
let
mediaDirectory = "\$HOME/media";
in {
xdg = {
enable = true;
userDirs = {
enable = true;
createDirectories = true;
/* TODO: this can be a btrfs subvolume to exclude those directories from snapshots */
download = "${mediaDirectory}/Downloads";
music = "${mediaDirectory}/Music";
pictures = "${mediaDirectory}/Pictures";
publicShare = "${mediaDirectory}/Public";
templates = "${mediaDirectory}/Templates";
videos = "${mediaDirectory}/Videos";
};
};
2022-02-15 15:44:40 +01:00
}