mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 09:03:51 +00:00
43 lines
817 B
Nix
43 lines
817 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
hmdir = config.home.homeDirectory;
|
|
in
|
|
{
|
|
options.module.misc.xdg = {
|
|
mime.enable = mkBool;
|
|
};
|
|
|
|
imports = [ ./mimeApps.nix ];
|
|
config = {
|
|
xdg = {
|
|
mime = True;
|
|
portal = True // {
|
|
config.common.default = "gtk";
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-gtk
|
|
xdg-desktop-portal-hyprland
|
|
];
|
|
};
|
|
userDirs = True // {
|
|
createDirectories = true;
|
|
desktop = "${hmdir}/Desktop";
|
|
documents = "${hmdir}/Documents";
|
|
download = "${hmdir}/Downloads";
|
|
music = "${hmdir}/Music";
|
|
pictures = "${hmdir}/Pictures";
|
|
publicShare = "${hmdir}/";
|
|
templates = "${hmdir}/";
|
|
videos = "${hmdir}/Videos";
|
|
};
|
|
};
|
|
};
|
|
}
|