]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
yt-dlp: disable Twitch's rechat subs
[julm/julm-nix.git] / nixos / profiles / graphical.nix
1 { pkgs, lib, ... }:
2 with lib;
3 {
4 console.useXkbConfig = mkDefault true;
5 environment.systemPackages = [
6 pkgs.gdk-pixbuf.dev # for gdk-pixbuf-query-loaders
7 pkgs.paprefs
8 pkgs.pulseaudio # for pactl when using pipewire
9 ];
10
11 security.rtkit.enable = true; # optional but recommended
12 services.pipewire = {
13 enable = true;
14 alsa.enable = mkDefault true;
15 alsa.support32Bit = mkDefault true;
16 pulse.enable = mkDefault true;
17 };
18
19 # Allow members of the "adbusers" group to mount Android devices via MTP.
20 programs.adb.enable = true;
21 programs.dconf.enable = true;
22 services.dbus.packages = [ pkgs.dconf ];
23 services.gvfs.enable = mkDefault true;
24 services.avahi.enable = mkDefault true;
25
26 services.xserver = {
27 enable = mkDefault true;
28 libinput.enable = mkDefault true;
29 exportConfiguration = mkDefault true; # link /usr/share/X11/ properly
30 desktopManager = {
31 session = [
32 # Let the session be generated by home-manager
33 {
34 name = "home-manager";
35 start = ''
36 ${pkgs.runtimeShell} $HOME/.hm-xsession &
37 waitPID=$!
38 '';
39 }
40 ];
41 xterm.enable = mkDefault false;
42 };
43 displayManager.autoLogin.enable = mkDefault true;
44 };
45
46 services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
47 }