2010-05-09 01:24:00 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.xserver.windowManager.awesome;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-05-09 01:24:00 +02:00
|
|
|
services.xserver.windowManager.awesome.enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Enable the Awesome window manager.";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "awesome";
|
|
|
|
start =
|
|
|
|
''
|
|
|
|
${pkgs.awesome}/bin/awesome &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2013-10-30 17:52:35 +01:00
|
|
|
environment.systemPackages = [ pkgs.awesome ];
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-05-09 01:24:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|