mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
42 lines
625 B
Nix
42 lines
625 B
Nix
# Contractor
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta.maintainers = pkgs.pantheon.maintainers;
|
|
|
|
###### 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"
|
|
];
|
|
|
|
};
|
|
|
|
}
|