# settings/desktop.nix — display manager, lightweight fallback session, GTK/Qt theming { config, pkgs, lib, inputs, ... }: { config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { services.xserver.enable = true; # Autologin straight into Hyprland; the quickshell lockscreen engages # immediately (see Lock.qml), so the lock *is* the login prompt. services.greetd = { enable = true; settings.default_session = { command = lib.getExe config.programs.hyprland.package; user = "fred"; }; }; boot.plymouth.enable = true; boot.initrd.verbose = false; boot.consoleLogLevel = 3; boot.kernelParams = [ "quiet" "udev.log_level=3" ]; # Flatpak for ad-hoc app installs via Bazaar services.flatpak.enable = true; # Secret Service for Chromium/Electron credential encryption. # Autologin can't unlock the keyring (no password typed), so greetd only # *starts* the daemon; the quickshell lockscreen authenticates against the # "login" PAM service, where pam_gnome_keyring unlocks it on first unlock. services.gnome.gnome-keyring.enable = true; security.pam.services.greetd.enableGnomeKeyring = true; security.pam.services.login.enableGnomeKeyring = true; environment.systemPackages = with pkgs; [ nemo # file manager adwaita-icon-theme gnome-themes-extra adwaita-icon-theme-legacy papirus-icon-theme ]; # Cursor theme — stylix.cursor in settings/stylix.nix owns the choice. environment.sessionVariables = { XCURSOR_THEME = "Bibata-Modern-Ice"; XCURSOR_SIZE = "24"; XCURSOR_PATH = lib.mkForce [ "${pkgs.bibata-cursors}/share/icons" "$HOME/.icons" "$HOME/.local/share/icons" ]; }; programs.xwayland.enable = true; programs.dconf.enable = true; home-manager.users.fred = { config, lib, pkgs, ... }: { # Stylix's qt target only supports qtct; disable it to silence the warning. stylix.targets.qt.enable = false; # Minimal titlebars — stylix manages the GTK theme; we layer our # headerbar shrink on top via stylix.targets.gtk.extraCss. gtk.enable = true; dconf.settings."org/nemo/window-state".start-with-menu-bar = false; stylix.targets.gtk.extraCss = '' headerbar { min-height: 0; padding: 0; margin: 0; } headerbar .title { font-size: 0; } window:backdrop { background-color: @window_bg_color; color: @window_fg_color; } window:backdrop headerbar { background-color: @headerbar_bg_color; color: @headerbar_fg_color; } ''; }; }; }