nixpkgs/nixos/modules/services/desktops/malcontent.nix

41 lines
628 B
Nix
Raw Normal View History

2020-03-10 22:18:47 +00:00
# Malcontent daemon.
{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
services.malcontent = {
enable = mkEnableOption "Malcontent, parental control support for applications";
2020-03-10 22:18:47 +00:00
};
};
###### implementation
config = mkIf config.services.malcontent.enable {
environment.systemPackages = with pkgs; [
malcontent
malcontent-ui
];
2020-03-10 22:18:47 +00:00
services.dbus.packages = [
# D-Bus services are in `out`, not the default `bin` output that would be picked up by `makeDbusConf`.
pkgs.malcontent.out
];
2020-03-10 22:18:47 +00:00
services.accounts-daemon.enable = true;
2020-03-10 22:18:47 +00:00
};
}