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

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.defaultApps;
in {
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 = {
"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"];
};
};
}