3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/desktops/pantheon/contractor.nix

42 lines
625 B
Nix
Raw Normal View History

2018-08-20 21:31:18 +01:00
# Contractor
{ config, pkgs, lib, ... }:
with lib;
{
meta.maintainers = pkgs.pantheon.maintainers;
2018-08-20 21:31:18 +01:00
###### interface
options = {
services.pantheon.contractor = {
enable = mkEnableOption "contractor, a desktop-wide extension service used by pantheon";
};
};
###### implementation
config = mkIf config.services.pantheon.contractor.enable {
environment.systemPackages = with pkgs.pantheon; [
contractor
extra-elementary-contracts
];
services.dbus.packages = [ pkgs.pantheon.contractor ];
environment.pathsToLink = [
"/share/contractor"
];
};
}