2020-04-24 23:36:52 +00:00
|
|
|
# Malcontent daemon.
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.malcontent = {
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "Malcontent, parental control support for applications");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.malcontent.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
malcontent
|
|
|
|
malcontent-ui
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
services.dbus.packages = [
|
|
|
|
# D-Bus services are in `out`, not the default `bin` output that would be picked up by `makeDbusConf`.
|
|
|
|
pkgs.malcontent.out
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|