summaryrefslogtreecommitdiffstats
path: root/usecases/desktop/graphical.nix
blob: 0483024aa8df0ae60b4a5cf2ff7e6f57aa83f5f4 (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
68
69
70
71
inputs:

{ pkgs, ... }:

{
  imports = [
    (import ./graphical/alacritty.nix inputs)
    (import ./graphical/mpv.nix inputs)
    (import ./graphical/rofi.nix inputs)
    (import ./graphical/sway.nix inputs)
    (import ./graphical/waybar.nix inputs)
    (import ./graphical/zathura.nix inputs)
  ];

  fonts = {
    enableDefaultFonts = true;
    fonts = with pkgs; [
      fira
      fira-mono
      dejavu_fonts
      freefont_ttf
      liberation_ttf
      noto-fonts-cjk
      #fira-mono-italic
      lmodern
      # Symbols
      unifont
      siji
      font-awesome_5
      #joypixels
      # Collections
      league-of-moveable-type
    ];

    fontconfig = {
      #ultimate.enable = true;

      defaultFonts = {
        serif = [ "DejaVu Serif" ];
        sansSerif = [ "DejaVu Sans" ];
        monospace = [ "Fira Mono" ];
        #emoji = [ "JoyPixels" ];
      };
    };
  };

  hardware.opengl.enable = true;
  programs.dconf.enable = true;

  xdg = {
    sounds.enable = true;
    portal = {
      enable = true;
      extraPortals = with pkgs; [
        xdg-desktop-portal-gtk
      ];
      gtkUsePortal = true;
    };
  };

  # For KDEConnect
  networking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
  networking.firewall.allowedUDPPortRanges = [{ from = 1714; to = 1764; }];

  home-manager.users.minijackson = {
    services.kdeconnect = {
      enable = true;
      indicator = true;
    };
  };
}