Files
nix-config/modules/graphical/awesome.nix
2025-10-30 21:59:31 +01:00

34 lines
613 B
Nix

{
config,
pkgs,
lib,
...
}:
let
cfg = config.custom.graphical.awesome;
in
{
options.custom.graphical.awesome = {
enable = lib.mkEnableOption "Enables awesome";
};
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager = {
sddm.enable = true;
defaultSession = "none+awesome";
};
windowManager.awesome = {
enable = true;
luaModules = with pkgs.luaPackages; [
luarocks # is the package manager for Lua modules
luadbi-mysql # Database abstraction layer
];
};
};
};
}