summaryrefslogtreecommitdiff
path: root/modules/root/awesome.nix
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-10-03 20:01:03 -0500
committerTim Keller <tjkeller.xyz>2024-10-03 20:01:03 -0500
commita651a2150aca24d915f7d139f6a8bcce9c6f641b (patch)
treebaeeb41312669a24919aeec8dd13bae618ea5470 /modules/root/awesome.nix
parent9aad420411b703278ac555858dc60f14f8f156bc (diff)
downloadnixos-a651a2150aca24d915f7d139f6a8bcce9c6f641b.tar.xz
nixos-a651a2150aca24d915f7d139f6a8bcce9c6f641b.zip
fix awesome with luajit and add some more cool stuff
Diffstat (limited to 'modules/root/awesome.nix')
-rw-r--r--modules/root/awesome.nix28
1 files changed, 26 insertions, 2 deletions
diff --git a/modules/root/awesome.nix b/modules/root/awesome.nix
index 4db5230..af1318f 100644
--- a/modules/root/awesome.nix
+++ b/modules/root/awesome.nix
@@ -1,9 +1,33 @@
-{ lib, config, ... }: {
+{ nixpkgs, pkgs, lib, config, ... }: {
options = {
xserver.awesome.enable = lib.mkEnableOption "enables awesomewm";
};
config = lib.mkIf config.xserver.awesome.enable {
- services.xserver.windowManager.awesome.enable = true;
+ services.xserver.windowManager.awesome = {
+ enable = true;
+ noArgb = true; # disables transparency. why not?
+ luaModules = with pkgs; [
+ luajitPackages.lgi
+ ];
+ };
+
+ #getLuaPath = lib: dir: "${lib}/${dir}/lua/${pkgs.luajit.luaversion}";
+ #makeSearchPath = lib.concatMapStrings (
+ # path:
+ # " --search "
+ # + (getLuaPath path "share")
+ # + " --search "
+ # + (getLuaPath path "lib")
+ #);
+
+
+ environment.systemPackages = with pkgs; [
+ (awesome.override {
+ gtk3Support = true;
+ gtk3 = gtk3;
+ lua = luajit;
+ })
+ ];
};
}