]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
sshd: use LoadCredentialEncrypted=
[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.paprefs
7 ];
8 hardware.pulseaudio.enable = mkDefault true;
9 # Allow members of the "adbusers" group to mount Android devices via MTP.
10 programs.adb.enable = true;
11 programs.dconf.enable = true;
12 services.dbus.packages = [ pkgs.dconf ];
13 services.gvfs.enable = mkDefault true;
14 services.avahi.enable = mkDefault true;
15 sound.enable = mkDefault true;
16
17 services.xserver = {
18 enable = mkDefault true;
19 libinput.enable = mkDefault true;
20 exportConfiguration = mkDefault true; # link /usr/share/X11/ properly
21 desktopManager = {
22 session = [
23 # Let the session be generated by home-manager
24 {
25 name = "home-manager";
26 start = ''
27 ${pkgs.runtimeShell} $HOME/.hm-xsession &
28 waitPID=$!
29 '';
30 }
31 ];
32 xterm.enable = mkDefault false;
33 };
34 displayManager.autoLogin.enable = mkDefault true;
35 };
36 }