at 23.11-beta 640 B view raw
1# Malcontent daemon. 2 3{ config, lib, pkgs, ... }: 4 5with lib; 6 7{ 8 9 ###### interface 10 11 options = { 12 13 services.malcontent = { 14 15 enable = mkEnableOption (lib.mdDoc "Malcontent, parental control support for applications"); 16 17 }; 18 19 }; 20 21 22 ###### implementation 23 24 config = mkIf config.services.malcontent.enable { 25 26 environment.systemPackages = with pkgs; [ 27 malcontent 28 malcontent-ui 29 ]; 30 31 services.dbus.packages = [ 32 # D-Bus services are in `out`, not the default `bin` output that would be picked up by `makeDbusConf`. 33 pkgs.malcontent.out 34 ]; 35 36 services.accounts-daemon.enable = true; 37 38 }; 39 40}