8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
37 lines
505 B
Nix
37 lines
505 B
Nix
# Malcontent daemon.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.malcontent = {
|
|
|
|
enable = mkEnableOption "Malcontent, parental control support for applications";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.malcontent.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
malcontent
|
|
malcontent-ui
|
|
];
|
|
|
|
services.dbus.packages = [ pkgs.malcontent ];
|
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
};
|
|
|
|
}
|