mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
19 lines
578 B
Nix
19 lines
578 B
Nix
{pkgs, lib, ...}: {
|
|
imports = [./default.nix];
|
|
|
|
home-manager.users.seb = {
|
|
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
|
|
|
|
services.hypridle.listeners = [
|
|
{
|
|
timeout = 300;
|
|
onTimeout = "${lib.getExe pkgs.brightnessctl} -s && ${lib.getExe pkgs.brightnessctl} -e set 10%";
|
|
onResume = "${lib.getExe pkgs.brightnessctl} -r";
|
|
}
|
|
{
|
|
timeout = 1200;
|
|
onTimeout = "systemctl suspend";
|
|
}
|
|
];
|
|
};
|
|
}
|