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