summaryrefslogtreecommitdiff
path: root/users/seth/desktop/niri/default.nix
blob: a414dd6f8bf1102ddd2d0a072e04f991d39a7c54 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  lib,
  pkgs,
  osConfig,
  ...
}:
let
  enable = osConfig.programs.niri.enable or false;
in
{
  config = lib.mkIf enable {
    # Set dark theme for Flatpak apps
    # https://github.com/YaLTeR/niri/wiki/Important-Software#portals
    dconf = {
      enable = true;
      settings = {
        "org/gnome/desktop/interface" = {
          color-scheme = "prefer-dark";
        };
      };
    };

    # Required for adwaita-ize
    gtk.enable = true;

    home.packages = [
      # Media player
      pkgs.celluloid

      # PDF reader
      pkgs.evince

      # Torrent client
      pkgs.fragments

      # Image viewer
      pkgs.loupe

      # Mastodon client
      pkgs.tuba

      # the funni (I need it for native Wayland support)
      pkgs.vesktop

      # TODO: Figure out how to export $DISPLAY from this
      # so I don't need the above
      pkgs.xwayland-satellite
    ];

    seth = {
      programs = {
        # Official Spotify has ugly CSD
        ncspot.enable = true;

        yazi.enable = true;
        zellij.enable = true;
      };

      # See comment about ncspot
      services.spotifyd.enable = true;

      tweaks = {
        adwaita-ize.enable = true;
      };
    };
  };
}