nix-config/modules/home/feh/default.nix

20 lines
391 B
Nix

{ config, lib, ... }:
let
cfg = config.my.home.feh;
in
{
options.my.home.feh = with lib; {
enable = mkEnableOption "feh configuration";
};
config.programs.feh = lib.mkIf cfg.enable {
enable = true;
};
config.my.home.xdg.mime-apps = lib.mkIf cfg.enable {
applications.media.image = {
bitmap = [ "feh.desktop" ];
vector = [ "feh.desktop" ];
};
};
}