mimeapps: move to user config
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m3s
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m3s
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
./services/tailscale.nix
|
||||
./system/desktop/gnome.nix
|
||||
./system/desktop/hyprland.nix
|
||||
./system/desktop/mimeapps.nix
|
||||
./system/wireless.nix
|
||||
];
|
||||
}
|
||||
|
@ -1,24 +1,15 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.modules.system.desktop.mimeapps;
|
||||
avApp = "io.github.celluloid_player.Celluloid.desktop";
|
||||
imageApp = "org.gnome.eog.desktop";
|
||||
avApp = "mpv.desktop";
|
||||
imageApp = "org.gnome.Loupe.desktop";
|
||||
in
|
||||
{
|
||||
options.modules.system.desktop.mimeapps = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
xdg.mime.defaultApplications = {
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
# Audio/video
|
||||
"audio/x-vorbis+ogg" = avApp;
|
||||
"audio/3gpp" = avApp;
|
@ -8,6 +8,7 @@
|
||||
./common/optional/graphical/firefox.nix
|
||||
./common/optional/graphical/hyprland
|
||||
./common/optional/graphical/libreoffice.nix
|
||||
./common/optional/graphical/mimeapps.nix
|
||||
./common/optional/graphical/thunderbird.nix
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user