1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 06:05:13 +00:00
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
};
}