nixos/modules/darkman.nix

17 lines
348 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.services.darkman;
in {
options.services.darkman.enable = lib.mkEnableOption "darkman, the light/dark mode switcher";
config = lib.mkIf cfg.enable {
services.dbus.packages = [pkgs.darkman];
environment.systemPackages = [pkgs.darkman];
systemd.packages = [pkgs.darkman];
};
}