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
|
./services/tailscale.nix
|
||||||
./system/desktop/gnome.nix
|
./system/desktop/gnome.nix
|
||||||
./system/desktop/hyprland.nix
|
./system/desktop/hyprland.nix
|
||||||
./system/desktop/mimeapps.nix
|
|
||||||
./system/wireless.nix
|
./system/wireless.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,15 @@
|
|||||||
{
|
{
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.modules.system.desktop.mimeapps;
|
avApp = "mpv.desktop";
|
||||||
avApp = "io.github.celluloid_player.Celluloid.desktop";
|
imageApp = "org.gnome.Loupe.desktop";
|
||||||
imageApp = "org.gnome.eog.desktop";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.system.desktop.mimeapps = {
|
xdg.mimeApps = {
|
||||||
enable = lib.mkOption {
|
enable = true;
|
||||||
default = false;
|
defaultApplications = {
|
||||||
example = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
xdg.mime.defaultApplications = {
|
|
||||||
# Audio/video
|
# Audio/video
|
||||||
"audio/x-vorbis+ogg" = avApp;
|
"audio/x-vorbis+ogg" = avApp;
|
||||||
"audio/3gpp" = avApp;
|
"audio/3gpp" = avApp;
|
@ -8,6 +8,7 @@
|
|||||||
./common/optional/graphical/firefox.nix
|
./common/optional/graphical/firefox.nix
|
||||||
./common/optional/graphical/hyprland
|
./common/optional/graphical/hyprland
|
||||||
./common/optional/graphical/libreoffice.nix
|
./common/optional/graphical/libreoffice.nix
|
||||||
|
./common/optional/graphical/mimeapps.nix
|
||||||
./common/optional/graphical/thunderbird.nix
|
./common/optional/graphical/thunderbird.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user