diff options
| author | Mark Nipper <nipsy@bitgnome.net> | 2026-01-27 16:31:09 -0800 |
|---|---|---|
| committer | Mark Nipper <nipsy@bitgnome.net> | 2026-01-27 16:31:09 -0800 |
| commit | a959a4470bda92234a63bbac8a312a49fe864edc (patch) | |
| tree | 3e4df3bb6613828abb5fc9b75a3a0364f6c917fa /hosts/common/optional/services/xorg.nix | |
| parent | 4f81ff3994851d85e2404f95197623d5c4bf8c9e (diff) | |
| download | nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar.gz nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar.bz2 nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar.lz nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar.xz nix-a959a4470bda92234a63bbac8a312a49fe864edc.tar.zst nix-a959a4470bda92234a63bbac8a312a49fe864edc.zip | |
Break out GUI options from display server
Diffstat (limited to 'hosts/common/optional/services/xorg.nix')
| -rw-r--r-- | hosts/common/optional/services/xorg.nix | 108 |
1 files changed, 17 insertions, 91 deletions
diff --git a/hosts/common/optional/services/xorg.nix b/hosts/common/optional/services/xorg.nix index 0c5ca0c..9852a51 100644 --- a/hosts/common/optional/services/xorg.nix +++ b/hosts/common/optional/services/xorg.nix @@ -1,95 +1,37 @@ { config, lib, pkgs, ... }: { environment.systemPackages = [ - pkgs.chafa - pkgs.evince - pkgs.feh - pkgs.gcr - #pkgs.geeqie - pkgs.ghostty - pkgs.gimp3 - #pkgs.gimp-with-plugins - pkgs.google-chrome - pkgs.gv - pkgs.inkscape - pkgs.kdePackages.okular - pkgs.libreoffice - pkgs.libva-utils - pkgs.mangohud - pkgs.mesa-demos - pkgs.mpv - pkgs.polkit_gnome - pkgs.rdesktop - pkgs.read-edid - pkgs.st - pkgs.sxiv #pkgs.tigervnc pkgs.turbovnc - pkgs.vdpauinfo - pkgs.vlc - pkgs.vulkan-tools - pkgs.wireshark pkgs.x11vnc - pkgs.xclip - pkgs.xdotool - pkgs.xorg.appres - pkgs.xorg.editres - pkgs.xorg.xdpyinfo - pkgs.xorg.xev pkgs.xscreensaver - pkgs.xsnow - pkgs.xterm ]; - programs = { - dconf = { - enable = true; - profiles.user.databases = [{ - settings."org/gnome/desktop/interface".color-scheme = "prefer-dark"; - }]; - }; - - firefox = { - enable = true; - #package = pkgs.master.firefox; - }; - }; - - security = { - pam = { - loginLimits = [ - { domain = "@users"; item = "rtprio"; type = "-"; value = 1; } - ]; - }; - 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" - ) + 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; - } - }) - ''; - }; + ) + { + return polkit.Result.YES; + } + }) + ''; }; services = { - blueman.enable = true; displayManager = lib.mkIf (config.networking.hostName != "fangorn") { defaultSession = "xsession"; }; - libinput.enable = true; picom.enable = true; - printing.enable = true; xserver = { displayManager.lightdm = lib.mkMerge [ (lib.mkIf (config.networking.hostName == "fangorn") { @@ -114,20 +56,4 @@ 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; - }; - }; - }; } |
