{ pkgs, ... }: { #environment.systemPackages = builtins.attrValues { # inherit (pkgs) environment.systemPackages = with pkgs; [ evince feh gcr geeqie gimp-with-plugins google-chrome gv inkscape libreoffice libva-utils mesa-demos mpv polkit_gnome rdesktop read-edid signal-desktop st sxiv tigervnc turbovnc vdpauinfo vlc vulkan-tools wireshark x11vnc xclip xdotool xorg.xdpyinfo xorg.xev xscreensaver xsnow xterm#; ]; #}; programs.firefox.enable = true; security.polkit = { enable = true; extraConfig = '' polkit.addRule(function(action, subject) { if ( subject.isInGroup("users") && ( action.id == "org.freedesktop.login1.reboot" || action.id == "org.freedesktop.login1.reboot-multiple-sessions" || action.id == "org.freedesktop.login1.power-off" || action.id == "org.freedesktop.login1.power-off-multiple-sessions" ) ) { return polkit.Result.YES; } }) ''; }; services.blueman.enable = true; services.printing.enable = true; services.displayManager.defaultSession = "xsession"; services.libinput.enable = true; services.xserver = { displayManager.lightdm = { enable = true; extraSeatDefaults = ''greeter-hide-users=true''; }; displayManager.session = [ { manage = "desktop"; name = "xsession"; start = ''exec $HOME/.xsession''; } ]; enable = true; xkb.layout = "us"; xkb.options = "caps:super,compose:ralt"; }; systemd = { user.services.polkit-gnome-authentication-agent-1 = { description = "polkit-gnome-authentication-agent-1"; wantedBy = [ "graphical-session.target" ]; wants = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; serviceConfig = { Type = "simple"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; Restart = "on-failure"; RestartSec = 1; TimeoutStopSec = 10; }; }; }; }