summaryrefslogtreecommitdiff
path: root/users/seth/mixins/niri.nix
blob: 22411dd78767c177f441503b52155cd5c795b732 (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
{
  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";
        };
      };
    };

    home.packages = [
      # Torrent client
      pkgs.fragments

      # 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
    ];

    # Enable some things from the NixOS module here to
    # apply Catppuccin themes
    programs = {
      alacritty.enable = true;
      fuzzel.enable = true;
      mako.enable = true;
      ncspot.enable = true; # Official Spotify has ugly CSD
      swaylock.enable = true;
      yazi.enable = true;
      zellij.enable = true;
    };

    seth = {
      adw-gtk3.enable = true;
    };
  };
}