Adding the 'awesome' window manager to nixos.

I made the system sw path include /etc/xdg - awesome looks for some file
in the XDG_CONFIG_DIRS, which in bashrc is set to point to the profiles/etc/xdg


svn path=/nixos/trunk/; revision=21675
wip/yesman
Lluís Batlle i Rossell 14 years ago
parent 4c1af311e1
commit 825923a051
  1. 2
      modules/config/system-path.nix
  2. 1
      modules/module-list.nix
  3. 42
      modules/services/x11/window-managers/awesome.nix

@ -116,5 +116,5 @@ in
require = [options];
environment.systemPackages = requiredPackages;
environment.pathsToLink = ["/bin" "/sbin" "/lib" "/share/man" "/share/info" "/man" "/info"];
environment.pathsToLink = ["/bin" "/sbin" "/lib" "/share/man" "/share/info" "/man" "/info" "/etc/xdg"];
}

@ -124,6 +124,7 @@
./services/x11/display-managers/slim.nix
./services/x11/hardware/synaptics.nix
./services/x11/hardware/wacom.nix
./services/x11/window-managers/awesome.nix
./services/x11/window-managers/compiz.nix
./services/x11/window-managers/default.nix
./services/x11/window-managers/icewm.nix

@ -0,0 +1,42 @@
{ config, pkgs, ... }:
with pkgs.lib;
let
cfg = config.services.xserver.windowManager.awesome;
in
{
###### interface
options = {
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=$!
'';
};
environment.x11Packages = [ pkgs.awesome ];
};
}
Loading…
Cancel
Save