mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: refactored home manager
This commit is contained in:
parent
65417d1809
commit
376c1d7b18
511 changed files with 1777 additions and 772 deletions
23
home/modules/gui/desktop/hypridle/config/settings.nix
Executable file
23
home/modules/gui/desktop/hypridle/config/settings.nix
Executable file
|
@ -0,0 +1,23 @@
|
|||
{ 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";
|
||||
}
|
||||
];
|
||||
}
|
20
home/modules/gui/desktop/hypridle/default.nix
Executable file
20
home/modules/gui/desktop/hypridle/default.nix
Executable file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue