14329586b9
20.03 uses picom instead. A compton alias exists, but I rather be precise.
45 lines
1,008 B
Nix
45 lines
1,008 B
Nix
{ config, options, lib, pkgs, ... }:
|
|
with lib;
|
|
{
|
|
imports = [
|
|
./common.nix
|
|
];
|
|
|
|
options.modules.desktop.bspwm = {
|
|
enable = mkOption { type = types.bool; default = false; };
|
|
};
|
|
|
|
config = mkIf config.modules.desktop.bspwm.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
lightdm
|
|
dunst
|
|
libnotify
|
|
(polybar.override {
|
|
pulseSupport = true;
|
|
nlSupport = true;
|
|
})
|
|
];
|
|
|
|
services = {
|
|
picom.enable = true;
|
|
redshift.enable = true;
|
|
xserver = {
|
|
enable = true;
|
|
displayManager.defaultSession = "none+bspwm";
|
|
displayManager.lightdm.enable = true;
|
|
displayManager.lightdm.greeters.mini.enable = true;
|
|
windowManager.bspwm.enable = true;
|
|
};
|
|
};
|
|
|
|
# link recursively so other modules can link files in their folders
|
|
my.home.xdg.configFile = {
|
|
"sxhkd".source = <config/sxhkd>;
|
|
"bspwm" = {
|
|
source = <config/bspwm>;
|
|
recursive = true;
|
|
};
|
|
};
|
|
};
|
|
}
|