1 { config, lib, pkgs, ... }:
7 cfg = config.services.xserver.windowManager.awesome;
9 getLuaPath = lib: dir: "${lib}/${dir}/lua/${awesome.lua.luaversion}";
10 makeSearchPath = lib.concatMapStrings (path:
11 " --search " + (getLuaPath path "share") +
12 " --search " + (getLuaPath path "lib")
22 services.xserver.windowManager.awesome = {
24 enable = mkEnableOption "Awesome window manager";
26 luaModules = mkOption {
28 type = types.listOf types.package;
29 description = "List of lua packages available for being used in the Awesome configuration.";
30 example = literalExpression "[ pkgs.luaPackages.vicious ]";
33 package = mkPackageOption pkgs "awesome" { };
38 description = "Disable client transparency support, which can be greatly detrimental to performance in some setups";
47 config = mkIf cfg.enable {
49 services.xserver.windowManager.session = singleton
53 ${awesome}/bin/awesome ${lib.optionalString cfg.noArgb "--no-argb"} ${makeSearchPath cfg.luaModules} &
58 environment.systemPackages = [ awesome ];