mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
38 lines
505 B
Nix
38 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;
|
|
|
|
};
|
|
|
|
}
|