mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:26:02 +00:00
f140dfb161
It's a confusing default for some display managers that will default to it even when you have defined another display manager.
38 lines
638 B
Nix
38 lines
638 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.desktopManager.xterm;
|
|
|
|
in
|
|
|
|
{
|
|
options = {
|
|
|
|
services.xserver.desktopManager.xterm.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
defaultText = "config.services.xserver.enable";
|
|
description = "Enable a xterm terminal as a desktop manager.";
|
|
};
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.desktopManager.session = singleton
|
|
{ name = "xterm";
|
|
start = ''
|
|
${pkgs.xterm}/bin/xterm -ls &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.xterm ];
|
|
|
|
};
|
|
|
|
}
|