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
This commit is contained in:
parent
4c1af311e1
commit
825923a051
@ -116,5 +116,5 @@ in
|
|||||||
require = [options];
|
require = [options];
|
||||||
|
|
||||||
environment.systemPackages = requiredPackages;
|
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/display-managers/slim.nix
|
||||||
./services/x11/hardware/synaptics.nix
|
./services/x11/hardware/synaptics.nix
|
||||||
./services/x11/hardware/wacom.nix
|
./services/x11/hardware/wacom.nix
|
||||||
|
./services/x11/window-managers/awesome.nix
|
||||||
./services/x11/window-managers/compiz.nix
|
./services/x11/window-managers/compiz.nix
|
||||||
./services/x11/window-managers/default.nix
|
./services/x11/window-managers/default.nix
|
||||||
./services/x11/window-managers/icewm.nix
|
./services/x11/window-managers/icewm.nix
|
||||||
|
42
modules/services/x11/window-managers/awesome.nix
Normal file
42
modules/services/x11/window-managers/awesome.nix
Normal file
@ -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…
x
Reference in New Issue
Block a user