2026-05-16 17:50:01 +01:00
|
|
|
# settings/desktop.nix — display manager, lightweight fallback session, GTK/Qt theming
|
2026-04-09 14:35:56 +01:00
|
|
|
{ config, pkgs, lib, inputs, ... }:
|
2025-12-03 15:46:37 +00:00
|
|
|
{
|
2026-01-09 13:09:34 +00:00
|
|
|
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
2026-01-05 09:25:10 +00:00
|
|
|
services.xserver.enable = true;
|
2026-07-08 17:03:26 +01:00
|
|
|
# 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";
|
|
|
|
|
};
|
|
|
|
|
};
|
2026-05-17 11:09:41 +01:00
|
|
|
boot.plymouth.enable = true;
|
2026-07-03 08:58:33 +01:00
|
|
|
boot.initrd.verbose = false;
|
|
|
|
|
boot.consoleLogLevel = 3;
|
|
|
|
|
boot.kernelParams = [ "quiet" "udev.log_level=3" ];
|
2026-04-09 14:35:56 +01:00
|
|
|
|
2026-04-08 19:54:46 +01:00
|
|
|
# Flatpak for ad-hoc app installs via Bazaar
|
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
|
|
2026-07-08 17:03:26 +01:00
|
|
|
# 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.
|
2026-07-02 10:55:21 +01:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
2026-07-08 17:03:26 +01:00
|
|
|
security.pam.services.greetd.enableGnomeKeyring = true;
|
|
|
|
|
security.pam.services.login.enableGnomeKeyring = true;
|
2026-07-02 10:55:21 +01:00
|
|
|
|
2026-01-05 09:25:10 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2026-05-16 17:50:01 +01:00
|
|
|
nemo # file manager
|
2026-01-05 09:25:10 +00:00
|
|
|
adwaita-icon-theme
|
2026-01-20 08:35:23 +00:00
|
|
|
gnome-themes-extra
|
2026-04-13 20:49:31 +01:00
|
|
|
adwaita-icon-theme-legacy
|
2026-04-13 21:03:00 +01:00
|
|
|
papirus-icon-theme
|
2026-01-05 09:25:10 +00:00
|
|
|
];
|
2026-01-11 22:29:04 +00:00
|
|
|
|
2026-05-12 11:48:28 +01:00
|
|
|
# Cursor theme — stylix.cursor in settings/stylix.nix owns the choice.
|
2026-01-05 09:25:10 +00:00
|
|
|
environment.sessionVariables = {
|
2026-05-12 11:48:28 +01:00
|
|
|
XCURSOR_THEME = "Bibata-Modern-Ice";
|
2026-01-05 09:25:10 +00:00
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
|
XCURSOR_PATH = lib.mkForce [
|
2026-05-12 11:48:28 +01:00
|
|
|
"${pkgs.bibata-cursors}/share/icons"
|
2026-01-05 09:25:10 +00:00
|
|
|
"$HOME/.icons"
|
|
|
|
|
"$HOME/.local/share/icons"
|
|
|
|
|
];
|
|
|
|
|
};
|
2026-04-09 14:35:56 +01:00
|
|
|
|
2026-01-05 09:25:10 +00:00
|
|
|
programs.xwayland.enable = true;
|
|
|
|
|
programs.dconf.enable = true;
|
2026-04-09 14:35:56 +01:00
|
|
|
|
2026-05-11 19:44:07 +01:00
|
|
|
home-manager.users.fred = { config, lib, pkgs, ... }: {
|
2026-05-14 14:58:13 +01:00
|
|
|
# Stylix's qt target only supports qtct; disable it to silence the warning.
|
|
|
|
|
stylix.targets.qt.enable = false;
|
2026-05-11 19:44:07 +01:00
|
|
|
# Minimal titlebars — stylix manages the GTK theme; we layer our
|
2026-05-16 17:14:44 +01:00
|
|
|
# headerbar shrink on top via stylix.targets.gtk.extraCss.
|
2026-05-11 19:59:19 +01:00
|
|
|
gtk.enable = true;
|
2026-05-16 17:22:47 +01:00
|
|
|
|
2026-05-16 17:59:25 +01:00
|
|
|
dconf.settings."org/nemo/window-state".start-with-menu-bar = false;
|
|
|
|
|
|
2026-05-11 19:59:19 +01:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
'';
|
2026-04-09 14:35:56 +01:00
|
|
|
};
|
2026-01-05 09:25:10 +00:00
|
|
|
};
|
2025-12-03 15:46:37 +00:00
|
|
|
}
|