Files
nix-config-ryan4yin/home/hosts/linux/12kingdoms-shoukei.nix
T
Ryan Yin 7131041107 feat(hypridle): define config in home-manager with per-host timeouts
Replace the static hypridle.conf with services.hypridle.settings and add required timeout options so each host tunes its own values:

- idols-ai (PC): 15 min keyboard, 20 min screen-off, 30 min lock.
- 12kingdoms-shoukei (laptop): 3 / 6 / 20 min (previous values).

The options have no defaults because the right values depend on the machine. Update the home-manager eval test to inspect the settings option instead of the old config file text.
2026-09-13 23:45:42 +08:00

30 lines
910 B
Nix

{ config, ... }:
let
hostName = "shoukei"; # Define your hostname.
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
in
{
imports = [
../../linux/gui.nix
./12kingdoms-shoukei/wluma.nix
];
programs.ssh.settings."github.com".IdentityFile = "${config.home.homeDirectory}/.ssh/${hostName}";
modules.desktop.gaming.enable = false;
modules.desktop.niri.enable = true;
# Laptop defaults: backlight 3 min, screen off 6 min, lock 20 min.
modules.desktop.hypridle = {
keyboardBacklightTimeout = 180;
screenOffTimeout = 360;
lockTimeout = 1200;
};
xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/12kingdoms-shoukei/niri-hardware.kdl";
# The built-in laptop speakers are quiet, so boost above the -23 dB default.
services.easyeffects.extraPresets."loudness-normalization".output."autogain#0".target = -12.0;
}