diff options
Diffstat (limited to 'nixos/modules/services/desktops/malcontent.nix')
-rw-r--r-- | nixos/modules/services/desktops/malcontent.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixos/modules/services/desktops/malcontent.nix b/nixos/modules/services/desktops/malcontent.nix new file mode 100644 index 00000000000..1fbeb17e6ae --- /dev/null +++ b/nixos/modules/services/desktops/malcontent.nix @@ -0,0 +1,40 @@ +# Malcontent daemon. + +{ config, lib, pkgs, ... }: + +with lib; + +{ + + ###### interface + + options = { + + services.malcontent = { + + enable = mkEnableOption "Malcontent, parental control support for applications"; + + }; + + }; + + + ###### implementation + + config = mkIf config.services.malcontent.enable { + + environment.systemPackages = with pkgs; [ + malcontent + malcontent-ui + ]; + + services.dbus.packages = [ + # D-Bus services are in `out`, not the default `bin` output that would be picked up by `makeDbusConf`. + pkgs.malcontent.out + ]; + + services.accounts-daemon.enable = true; + + }; + +} |