greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / nixos / roles / desktop.nix62 lines · 1187B · raw

1{ pkgs, ... }:
2
3{
4  xdg = {
5    autostart.enable = true;
6    icons.enable = true;
7    mime.enable = true;
8    sounds.enable = true;
9
10    portal = {
11      enable = true;
12      extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
13      configPackages = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
14
15      wlr.enable = true;
16
17      config.common = {
18        default = [ "wlr" ];
19      };
20    };
21  };
22
23  fonts = {
24    enableDefaultPackages = false;
25
26    packages = with pkgs; [
27      noto-fonts
28      noto-fonts-cjk-sans
29      noto-fonts-cjk-serif
30      noto-fonts-color-emoji
31
32      nerd-fonts.comic-shanns-mono
33    ];
34
35    fontconfig = {
36      hinting.autohint = true;
37
38      defaultFonts = {
39        serif = [ "Noto Serif" "Noto Color Emoji" ];
40        sansSerif = [ "Noto Sans" "Noto Color Emoji" ];
41        monospace = [ "ComicShannsMono Nerd Font" "Noto Color Emoji" ];
42        emoji = [ "Noto Color Emoji" ];
43      };
44    };
45  };
46
47  services = {
48    udisks2.enable = true;
49
50    pipewire = {
51      enable = true;
52
53      alsa.enable = true;
54      alsa.support32Bit = true;
55
56      pulse.enable = true;
57      jack.enable = true;
58
59      wireplumber.enable = true;
60    };
61  };
62}