refactor(home:mime-apps): move mime configuration to relevant application modules

This commit is contained in:
ooks-io 2024-06-23 23:19:12 +12:00
parent 65fb953361
commit 55f907cf08
7 changed files with 225 additions and 189 deletions

View file

@ -3,6 +3,8 @@
let
inherit (config.colorscheme) palette;
inherit (lib) mkIf;
zathura = { "application/pdf" = ["org.pwmt.zathura.desktop"]; };
cfg = config.ooknet.productivity.pdf.zathura;
pdf = config.ooknet.desktop.pdf;
fonts = config.ooknet.fonts;
@ -38,5 +40,9 @@ in
recolor-darkcolor = "#${palette.base06}";
};
};
xdg.mimeApps = mkIf (pdf == "zathura") {
associations.added = zathura;
defaultApplications = zathura;
};
};
}