- add my.username / my.gaming.enable / my.ai.local.enable options and gate optional app modules on them instead of per-host import lists - move vendor-neutral hardware.graphics into modules/graphical, leaving only NVIDIA-specific drivers and env vars in modules/hardware/nvidia - derive the primary user everywhere from my.username (users, getty, home-manager, tmpfiles) - de-duplicate Hyprland autostart down to a single system loginShellInit using the start-hyprland wrapper - consolidate all nixpkgs overlays into modules/core/nix.nix and use final.stdenv.hostPlatform.system - make the zsh rebuild helper target $(hostname) instead of hardcoded hades - add nixpkgs follows for nixos-hardware, pi and comfy-ui (single nixpkgs) - add .gitignore and a nixfmt flake formatter; format all nix files - remove empty browser.nix/display-configuration.nix and rename local_ai.nix -> local-ai.nix - document the my.* toggles in the README
28 lines
831 B
Nix
28 lines
831 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
# Rofi script-mode indexer: exposes every executable user script
|
|
# (shell, python, whatever) so the launcher finds "everything".
|
|
rofiScripts = pkgs.writeShellScriptBin "rofi-scripts" (builtins.readFile ./rofi/rofi-scripts.sh);
|
|
in
|
|
{
|
|
programs.rofi = {
|
|
enable = true;
|
|
terminal = "${pkgs.foot}/bin/foot";
|
|
cycle = true;
|
|
theme = ./rofi/volt.rasi;
|
|
|
|
extraConfig = {
|
|
# Combi mode searches .desktop apps (drun), binaries (run),
|
|
# open windows (window) and user scripts (scripts).
|
|
modes = "combi";
|
|
combi-modes = "drun,run,window,scripts:${rofiScripts}/bin/rofi-scripts";
|
|
show-icons = false;
|
|
drun-display-format = "{name} <span alpha='60%'>{comment}</span>";
|
|
display-combi = "silicon volt >";
|
|
matching = "fuzzy";
|
|
sort = true;
|
|
};
|
|
};
|
|
}
|