2020-03-10 15:18:47 -07:00
|
|
|
# Malcontent daemon.
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.malcontent = {
|
|
|
|
|
2020-03-27 23:00:16 -07:00
|
|
|
enable = mkEnableOption "Malcontent, parental control support for applications";
|
2020-03-10 15:18:47 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.malcontent.enable {
|
|
|
|
|
2020-03-25 18:02:20 -07:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
malcontent
|
|
|
|
malcontent-ui
|
|
|
|
];
|
2020-03-10 15:18:47 -07:00
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.malcontent ];
|
|
|
|
|
2020-03-27 23:00:16 -07:00
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
|
2020-03-10 15:18:47 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|