safe eyes

This commit is contained in:
KoenDR06 2025-11-21 13:56:42 +01:00
parent 77df4c2a45
commit 054f80a3f5
4 changed files with 31 additions and 13 deletions

View file

@ -9,6 +9,7 @@
in {
imports = [
./firefox.nix
./safeeyes.nix
];
options = {

View file

@ -0,0 +1,22 @@
{
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
];
};
}

View file

@ -43,6 +43,8 @@ in {
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
];
horseman.apps.visual.safeeyes.enable = true;
horseman.wm.hyprland.config = {
execOnce = [
"hyprpaper"
@ -50,6 +52,8 @@ in {
"hyprpaper"
"systemctl --user start hyprpolkitagent"
"waybar"
"safeeyes"
"snixembed"
];
env = [
@ -93,18 +97,12 @@ in {
dimSpecial = 0.4;
shadow = {
enabled = true;
range = 4;
renderPower = 3;
color = "rgba(1a1a1aee)";
};
shadow.enabled = false;
blur = {
enabled = true;
size = 3;
passes = 3;
vibrancy = 0.1696;
size = 25;
passes = 2;
};
};