This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
desktop_nixos_config_legacy/home/apps/library.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

2024-08-23 21:32:44 +02:00
{
2024-08-24 09:55:59 +02:00
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.defaultApps;
in {
2024-08-23 21:32:44 +02:00
options.local.apps.defaultApps.enable = mkEnableOption "Default app library";
config = mkIf cfg.enable {
home.packages = with pkgs; [
chromium
darktable
deluge
discord
element-desktop
firefox
gperftools
gwenview
helix
libreoffice-fresh
lutris
mpv
neovim
obs-studio
openrct2
pavucontrol
pdfarranger
prismlauncher
qpdfview
runelite
spotify
tdesktop
vlc
vpsfree-client
vscodium-fhs
zola
zoom-us
];
xdg.mimeApps.defaultApplications = {
2024-08-24 09:55:59 +02:00
"application/x-extension-htm" = ["firefox.desktop"];
"application/x-extension-html" = ["firefox.desktop"];
"application/x-extension-shtml" = ["firefox.desktop"];
"application/x-extension-xht" = ["firefox.desktop"];
"application/x-extension-xhtml" = ["firefox.desktop"];
"application/xhtml+xml" = ["firefox.desktop"];
"text/html" = ["firefox.desktop"];
"x-scheme-handler/http" = ["firefox.desktop"];
"x-scheme-handler/https" = ["firefox.desktop"];
"application/pdf" = ["qpdfview.desktop"];
2024-08-23 21:32:44 +02:00
};
};
}