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

38 lines
505 B
Nix
Raw Normal View History

2020-03-10 23:18:47 +01:00
# Malcontent daemon.
{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
services.malcontent = {
enable = mkEnableOption "Malcontent, parental control support for applications";
2020-03-10 23:18:47 +01:00
};
};
###### implementation
config = mkIf config.services.malcontent.enable {
environment.systemPackages = with pkgs; [
malcontent
malcontent-ui
];
2020-03-10 23:18:47 +01:00
services.dbus.packages = [ pkgs.malcontent ];
services.accounts-daemon.enable = true;
2020-03-10 23:18:47 +01:00
};
}