summaryrefslogtreecommitdiff
path: root/modules/root/software/awesome.nix
blob: fdc86e87b6871f583a00ee890c6cc55ed63b5400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ pkgs, lib, config, ... }: {
	options = {
		xserver.awesome.enable = lib.mkEnableOption "enables awesomewm";
	};

	config = lib.mkIf (config.xserver.enable && config.xserver.awesome.enable ) {
		services.xserver.windowManager.awesome = {
			enable = true;
			noArgb = true;  # disables transparency. why not?
			luaModules = with pkgs.luajitPackages; [
				lgi
			];
			package = with pkgs; awesome.override {
				gtk3Support = true;
				gtk3 = gtk3;
				lua = luajit;
			};
		};
	};
}