initial refactoring

This commit is contained in:
Noah Masur
2025-01-20 22:35:40 -05:00
parent a4b5e05f8f
commit c7933f8502
209 changed files with 5998 additions and 5308 deletions

View File

@ -0,0 +1,35 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.nmasur.presets.programs.nsxiv;
in
{
options.nmasur.presets.programs.nsxiv.enable = lib.mkEnableOption "Neo Simple X Image Viewer";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
nsxiv # Image viewer
];
# Set default program for opening images
xdg.mimeApps = {
associations.added = {
"image/jpeg" = [ "nsxiv.desktop" ];
"image/png" = [ "nsxiv.desktop" ];
"image/*" = [ "nsxiv.desktop" ];
};
defaultApplications = {
"image/jpeg" = [ "nsxiv.desktop" ];
"image/png" = [ "nsxiv.desktop" ];
"image/*" = [ "nsxiv.desktop" ];
};
};
};
}