b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
40 lines
640 B
Nix
40 lines
640 B
Nix
# Malcontent daemon.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.malcontent = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "Malcontent, parental control support for applications");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.malcontent.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
malcontent
|
|
malcontent-ui
|
|
];
|
|
|
|
services.dbus.packages = [
|
|
# D-Bus services are in `out`, not the default `bin` output that would be picked up by `makeDbusConf`.
|
|
pkgs.malcontent.out
|
|
];
|
|
|
|
services.accounts-daemon.enable = true;
|
|
|
|
};
|
|
|
|
}
|