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
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.malcontent ];
|
|
|
|
|
2020-03-28 07:00:16 +01:00
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
|
2020-03-10 23:18:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|