Files
nixos-config/hosts/konishi/default.nix
T
Miguel Palhas 75198e4429
CI / lint (push) Successful in 1m11s
CI / eval (push) Failing after 2m28s
konishi: autologin straight into hyprlock
SDDM auto-logs naps62 in and Hyprland locks immediately via hyprlock
(exec-once), so a cold boot lands on the themeable lock screen instead of
the SDDM greeter. Safe here (no FDE makes SDDM-vs-autologin marginal) and it
lets Moonlight reach the box after a cold boot, not just from suspend, since
Sunshine only runs once a session exists. konishi-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-05 15:55:22 +01:00

66 lines
2.2 KiB
Nix

{
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
../common/global
../common/features/user.nix
../common/features/networking.nix
../common/features/gpu/nvidia.nix
../common/features/display
../common/features/pipewire.nix
../common/features/docker.nix
../common/features/fonts.nix
../common/features/nix-ld.nix
../common/features/bluetooth.nix
../common/features/ledger.nix
../common/features/wine.nix
../common/features/gaming
../common/features/appimage.nix
../common/features/home
];
networking.hostName = "konishi";
# Arm Wake-on-LAN (magic packet) on the Intel igc NIC and re-apply it on every
# boot — the driver resets WoL state otherwise. Lets Moonlight wake this box
# from suspend to stream. NOTE: also needs "Wake on LAN" enabled in BIOS (and
# ErP/deep-S5 disabled if you want wake from full power-off, not just suspend).
networking.interfaces.enp5s0.wakeOnLan.enable = true;
services.xserver.displayManager.sessionCommands = ''
BOTTOM='HDMI-0'
TOP='DP-0'
RIGHT='DP-2'
# Match Hyprland layout: TOP at 0x0, BOTTOM at 0x2160, RIGHT at 3840x180
${pkgs.xrandr}/bin/xrandr \
--output $TOP --mode 3840x2160 --pos 0x0 --rotate normal \
--output $BOTTOM --primary --mode 3840x2160 --pos 0x2160 --rotate normal \
--output $RIGHT --mode 3840x2160 --pos 3840x180 --rotate left
${pkgs.xrandr}/bin/xrandr --dpi 160
'';
# Boot straight into a locked Hyprland instead of the SDDM greeter: SDDM
# auto-logs naps62 in, the session starts, and hyprlock (exec-once in the home
# config) immediately locks it — so the first thing you see is hyprlock, the
# one themeable lock screen. Safe on this box: no full-disk encryption means
# SDDM-vs-autologin is a marginal boundary anyway, and it also lets Moonlight
# reach the box after a *cold boot* (Sunshine is a user service that only runs
# once a session exists), not just from suspend. konishi-only — never arrakis.
services.displayManager = {
autoLogin = {
enable = true;
user = "naps62";
};
defaultSession = "hyprland";
};
networking.nameservers = [
"100.100.100.100"
"10.1.10.1"
];
}