mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/pantheon: add parental-controls
Co-authored-by: davidak <git@davidak.de>
This commit is contained in:
parent
4104e0ff64
commit
b8ac32542d
2 changed files with 17 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ in
|
|||
enable = mkEnableOption "contractor, a desktop-wide extension service used by Pantheon";
|
||||
};
|
||||
|
||||
parental-controls.enable = mkEnableOption "Pantheon parental controls daemon";
|
||||
|
||||
apps.enable = mkEnableOption "Pantheon default applications";
|
||||
|
||||
};
|
||||
|
|
@ -162,6 +164,7 @@ in
|
|||
];
|
||||
services.pantheon.apps.enable = mkDefault true;
|
||||
services.pantheon.contractor.enable = mkDefault true;
|
||||
services.pantheon.parental-controls.enable = mkDefault true;
|
||||
services.gnome.at-spi2-core.enable = true;
|
||||
services.gnome.evolution-data-server.enable = true;
|
||||
services.gnome.glib-networking.enable = true;
|
||||
|
|
@ -360,5 +363,14 @@ in
|
|||
];
|
||||
})
|
||||
|
||||
(mkIf serviceCfg.parental-controls.enable {
|
||||
services.malcontent.enable = mkDefault true;
|
||||
|
||||
environment.systemPackages = [ pkgs.pantheon.switchboard-plug-parental-controls ];
|
||||
|
||||
services.dbus.packages = [ pkgs.pantheon.switchboard-plug-parental-controls ];
|
||||
|
||||
systemd.packages = [ pkgs.pantheon.switchboard-plug-parental-controls ];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue