2020-03-10 23:18:47 +01:00
|
|
|
# Malcontent daemon.
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.malcontent = {
|
|
|
|
|
2020-03-28 07:00:16 +01:00
|
|
|
enable = mkEnableOption "Malcontent, parental control support for applications";
|
2020-03-10 23:18:47 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.malcontent.enable {
|
|
|
|
|
2020-03-26 02:02:20 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
malcontent
|
|
|
|
malcontent-ui
|
|
|
|
];
|
2020-03-10 23:18:47 +01:00
|
|
|
|
2020-07-23 19:34:12 +02: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-03-10 23:18:47 +01:00
|
|
|
|
2020-03-28 07:00:16 +01:00
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
|
2020-03-10 23:18:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|