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