summaryrefslogtreecommitdiff
path: root/machines/enzo/desktop.nix
blob: 8375e13884051f98ae276ab015a8e8a86436e070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# enzo-only desktop extras. The shared niri/dark/audio/firefox base comes from
# ../../profiles/desktop.nix (imported in ./default.nix); this file holds just
# what's specific to the laptop.
{ pkgs, ... }:

{
  # --- Fonts: enzo's monospace (base font packages come from the shared profile) ---
  fonts.fontconfig.defaultFonts.monospace = [ "Adwaita Mono" ];

  # --- Cursor ---
  environment.sessionVariables = {
    XCURSOR_THEME = "Adwaita";
    XCURSOR_SIZE = "24";
  };
  # Cursor theme referenced by XCURSOR_THEME / niri's xcursor-theme. Without this
  # package the Adwaita cursor files aren't on disk, so named shapes (e.g. the
  # link "pointer"/hand) fail to load and the cursor never changes on hover.
  environment.systemPackages = with pkgs; [
    adwaita-icon-theme
    yambar # text status bar
  ];

  # --- User: desktop groups (niri essentials) ---
  users.users.hwebs.extraGroups = [
    "audio"
    "input"
  ];

  # --- Console / greeter font (HiDPI panel) ---
  # The eDP panel is high-density, so the kernel VT and tuigreet render with a
  # tiny 8x16 font. A large Terminus bitmap font makes the TTY and the greeter
  # legible; earlySetup applies it from initrd so it's big from the first frame.
  # Sizes: ter-v{16,18,20,22,24,28,32}n — bump/drop to taste.
  console = {
    earlySetup = true;
    packages = [ pkgs.terminus_font ];
    font = "ter-v32n";
  };
}