23 lines
691 B
Nix
23 lines
691 B
Nix
{ pkgs, lib, config, options, ...}:
|
|
let
|
|
inherit (lib) mkDefault mkIf mkEnableOption;
|
|
cfg = config.nixfiles.common.wm;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
# Common options for standalone window managers; many of these (or
|
|
# alternatives thereof) are pulled in by desktop environments.
|
|
services = {
|
|
power-profiles-daemon.enable = mkDefault true;
|
|
blueman.enable = mkDefault config.hardware.bluetooth.enable;
|
|
};
|
|
programs = {
|
|
nm-applet.enable = mkDefault config.networking.networkmanager.enable;
|
|
};
|
|
security.pam.services.swaylock = {};
|
|
};
|
|
options = {
|
|
nixfiles.common.wm.enable = mkEnableOption "common window manager configuration";
|
|
};
|
|
}
|