mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 09:13:58 +00:00
37 lines
860 B
Nix
37 lines
860 B
Nix
|
{ pkgs, lib, config, True, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.module.misc.xdg;
|
||
|
hmdir = config.home.homeDirectory;
|
||
|
in {
|
||
|
options = { module.misc.xdg = { enable = mkEnableOption ""; }; };
|
||
|
|
||
|
imports = [ ./mimeApps.nix ];
|
||
|
config = mkIf cfg.enable {
|
||
|
xdg = {
|
||
|
mime = True;
|
||
|
portal = True // {
|
||
|
config.common.default = "gtk";
|
||
|
extraPortals = with pkgs; [
|
||
|
xdg-desktop-portal-hyprland
|
||
|
xdg-desktop-portal-gtk
|
||
|
];
|
||
|
};
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|