22 lines
365 B
Nix
22 lines
365 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.horseman.apps.visual.safeeyes;
|
|
in {
|
|
options = {
|
|
horseman.apps.visual.safeeyes = {
|
|
enable = mkEnableOption "Protects your eyes";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
snixembed
|
|
safeeyes
|
|
];
|
|
};
|
|
}
|