nixos/settings/gnome.nix

66 lines
2.2 KiB
Nix
Raw Normal View History

# settings/gnome.nix — display manager, lightweight fallback session, GTK/Qt theming
{ 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-05-14 14:46:31 +01:00
services.displayManager.ly.enable = true;
2026-05-13 21:13:31 +01:00
services.displayManager.defaultSession = "hyprland";
2026-01-11 22:29:04 +00:00
boot.plymouth.enable = false;
2026-05-14 15:19:46 +01:00
services.displayManager.ly.settings = {
animation = "gameoflife";
bigclock = true;
2026-05-14 15:06:48 +01:00
};
# Lightweight fallback session — if Hyprland fails after an update,
# ly will list XFCE as an alternative without pulling in GNOME's
# keyring, tracker, or other heavyweight background services.
services.xserver.desktopManager.xfce.enable = true;
# Flatpak for ad-hoc app installs via Bazaar
services.flatpak.enable = true;
2026-01-05 09:25:10 +00:00
environment.systemPackages = with pkgs; [
nautilus # file manager — works standalone without a GNOME DE
2026-01-05 09:25:10 +00:00
adwaita-icon-theme
2026-01-20 08:35:23 +00:00
gnome-themes-extra
adwaita-icon-theme-legacy
papirus-icon-theme
2026-01-05 09:25:10 +00:00
];
2026-01-11 22:29:04 +00:00
# Cursor theme — stylix.cursor in settings/stylix.nix owns the choice.
2026-01-05 09:25:10 +00:00
environment.sessionVariables = {
XCURSOR_THEME = "Bibata-Modern-Ice";
2026-01-05 09:25:10 +00:00
XCURSOR_SIZE = "24";
XCURSOR_PATH = lib.mkForce [
"${pkgs.bibata-cursors}/share/icons"
2026-01-05 09:25:10 +00:00
"$HOME/.icons"
"$HOME/.local/share/icons"
];
};
2026-01-05 09:25:10 +00:00
programs.xwayland.enable = true;
programs.dconf.enable = true;
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;
# Minimal titlebars — stylix manages the GTK theme; we layer our
# headerbar shrink on top via stylix.targets.gtk.extraCss.
gtk.enable = true;
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-01-05 09:25:10 +00:00
};
2025-12-03 15:46:37 +00:00
}