feat: added some exec stuff

This commit is contained in:
Nick 2025-01-11 18:53:08 -06:00
parent 569d969ecc
commit 42316e4a2a
84 changed files with 25 additions and 9 deletions

View file

@ -0,0 +1,22 @@
{pkgs, ...}: {
general = {
lock_cmd = "pidof swaylock || swaylock";
before_sleep_cmd = "loginctl lock-session";
};
listener = [
{
timeout = 150;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 0";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
}
{
timeout = 150;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -sd rgb:kbd_backlight set 0";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -rd rgb:kbd_backlight";
}
{
timeout = 300;
on-timeout = "systemctl suspend";
}
];
}

View file

@ -0,0 +1,18 @@
{
flake,
pkgs,
...
}: let
configPath = ./config;
settingsPath = import (configPath + /settings.nix) {
inherit
pkgs
;
};
in {
services.hypridle = {
enable = true;
package = flake.inputs.hypridle.packages.${pkgs.system}.hypridle;
settings = settingsPath;
};
}