fb743d735316734a44dee3e76498365b2a6344df
Replace the hl.exec_cmd autostart block with declarative home-manager services so the desktop shell has proper ordering and lifecycle: - services.hyprpaper (with settings) for hyprpaper - services.cliphist for the text/image clipboard watchers - services.hyprpolkitagent for the polkit agent - programs.quickshell.systemd for the quickshell shell - a hand-written systemd.user.services.mako (home-manager has no unit) All are tied to config.wayland.systemd.target (graphical-session.target), which start-hyprland already activates. No UWSM required.
NixOS Configs
Reproducible multi-host NixOS + Hyprland ("Silicon Volt") configuration.
Install (new machine)
# Setup disks
nix run --experimental-features "nix-common flakes" github:nix-community/disko -- --mode disko --flake .#hades
# install configs
nixos-install --flake .#hades
# set password
nixos-enter --root /mnt -- passwd anish
Rebuild (existing machine)
rebuild switch # zsh helper: sudo nixos-rebuild switch --flake ~/NixOS-Configs#<host>
Adding a new host (e.g. a laptop)
- Create
hosts/<name>/withdefault.nix,hardware-configuration.nix, and (optionally)disko.nix. Shared modules (modules/core,modules/graphical,modules/apps) are already pulled in bycommonModulesinflake.nix— the host only adds its own hardware/disko config. - Register it in
flake.nixundernixosConfigurations. - Turn optional features on per machine via the shared
my.*options:
# hosts/<name>/default.nix
my = {
username = "anish"; # default; change for a different primary user
gaming.enable = false; # Steam, Gamemode, MangoHud
ai.local.enable = false; # Ollama, ComfyUI, Open WebUI
};
- Declare host-specific displays in
hosts/<name>/default.nix:
home-manager.users.anish.volt.monitors = [
{
output = "eDP-1"; # or "desc:<panel description>"
mode = "2880x1800@120Hz"; # or "preferred"
position = "auto";
scale = 2;
vrr = null; # optional per-monitor VRR
}
{ output = ""; mode = "preferred"; position = "auto"; scale = "auto"; } # fallback
];
The volt.monitors default (any output @ preferred) keeps every machine working
out of the box; hosts override only what they need. Hosts without an NVIDIA GPU
simply don't import modules/hardware/nvidia.nix — all vendor env vars live there,
while the vendor-neutral hardware.graphics stack lives in modules/graphical.
Feature toggles (my.*)
Optional app modules are always imported (via modules/apps/default.nix) but only
activate when a host sets the corresponding flag, so hosts never need to edit
import lists:
| Option | Enables |
|---|---|
my.username |
Primary user (users, home-manager, getty autologin) |
my.gaming.enable |
Steam, Gamemode, MangoHud |
my.ai.local.enable |
Ollama (CUDA), ComfyUI, Open WebUI |
Hardware modules remain explicit imports per host (e.g. modules/hardware/nvidia.nix).
Description
Languages
QML
68.2%
Nix
20.8%
Lua
7.1%
Shell
3.9%