diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2021-08-24 09:33:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-24 09:33:07 -0700 |
commit | e02fbd0065a8bdfb626800d1ea565383755838b9 (patch) | |
tree | 115dec4c4fd075fb438306395fccb048c19f847e /nixos/modules/services/x11 | |
parent | 5391469a1133f00ba8b1a0fdb005bcd3ce8c15ae (diff) | |
parent | 7239ddf173f547e3659e2923e7a7f029d639e1df (diff) | |
download | nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar.gz nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar.bz2 nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar.lz nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar.xz nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.tar.zst nixpkgs-e02fbd0065a8bdfb626800d1ea565383755838b9.zip |
Merge pull request #133438 from figsoda/sx-module
nixos/sx: init
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/display-managers/sx.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/sx.nix b/nixos/modules/services/x11/display-managers/sx.nix new file mode 100644 index 00000000000..132531c0ddc --- /dev/null +++ b/nixos/modules/services/x11/display-managers/sx.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let cfg = config.services.xserver.displayManager.sx; + +in { + options = { + services.xserver.displayManager.sx = { + enable = mkEnableOption "sx pseudo-display manager" // { + description = '' + Whether to enable the "sx" pseudo-display manager, which allows users + to start manually via the "sx" command from a vt shell. The X server + runs under the user's id, not as root. The user must provide a + ~/.config/sx/sxrc file containing session startup commands, see + sx(1). This is not automatically generated from the desktopManager + and windowManager settings. sx doesn't have a way to directly set + X server flags, but it can be done by overriding its xorgserver + dependency. + ''; + }; + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.sx ]; + services.xserver = { + exportConfiguration = true; + displayManager = { + job.execCmd = ""; + lightdm.enable = mkForce false; + }; + logFile = mkDefault null; + }; + systemd.services.display-manager.enable = false; + }; +} |