2015-03-16 03:24:54 +00:00
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.spectrwm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2015-12-04 09:38:23 +00:00
|
|
|
services.xserver.windowManager.spectrwm.enable = mkEnableOption "spectrwm";
|
2015-03-16 03:24:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager = {
|
|
|
|
session = [{
|
|
|
|
name = "spectrwm";
|
|
|
|
start = ''
|
|
|
|
${pkgs.spectrwm}/bin/spectrwm &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.spectrwm ];
|
|
|
|
};
|
|
|
|
}
|