Files
nix-config-ryan4yin/home/hosts/linux/idols-ai.nix
T
ryan4yin | 二花 0dcbbb02e9 feat(canokey): enroll new CanoKeys and retire per-host SSH keys (#524)
Hosts now accept only the two CanoKeys' resident SSH keys for ryan, plus the romantic recovery key for root; per-host user keys stop working. Darwin builds work again: the shared base no longer sets nixpkgs.config next to nix-darwin's nixpkgs.pkgs.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
Assisted-by: DeepSeek Harness (deepseek-flash)
2026-11-11 01:38:12 +08:00

42 lines
1.1 KiB
Nix

{
config,
...
}:
let
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
in
{
imports = [
../../linux/gui.nix
];
modules.desktop.vinput.enable = true;
modules.desktop.gaming.enable = true;
modules.desktop.niri.enable = true;
# PC: keep the screen on longer than on the laptop.
modules.desktop.hypridle = {
keyboardBacklightTimeout = 900;
screenOffTimeout = 1200;
lockTimeout = 1800;
};
programs.zed-editor.userSettings = {
ui_font_size = 18.0;
buffer_font_size = 17.0;
agent_ui_font_size = 18.0;
agent_buffer_font_size = 17.0;
};
xdg.configFile."niri/niri-hardware.kdl".source =
mkSymlink "${config.home.homeDirectory}/nix-config/hosts/idols-ai/niri-hardware.kdl";
# Keep Noctalia's network widgets on the physical uplink, not the Mihomo TUN
# (the interface name is in ./idols-ai/noctalia.toml and `hostsAddr.ai.iface`).
xdg.configFile."noctalia/host-ai.toml".source = ./idols-ai/noctalia.toml;
# The desktop speakers are already loud, so use the broadcast-standard -23 dB.
services.easyeffects.extraPresets."loudness-normalization".output."autogain#0".target = -23.0;
}