20 lines
383 B
Nix
20 lines
383 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";
|
|
};
|
|
};
|
|
}
|