diff options
Diffstat (limited to 'nixpkgs/nixos/modules/services/desktops/pantheon')
-rw-r--r-- | nixpkgs/nixos/modules/services/desktops/pantheon/contractor.nix | 41 | ||||
-rw-r--r-- | nixpkgs/nixos/modules/services/desktops/pantheon/files.nix | 38 |
2 files changed, 79 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/services/desktops/pantheon/contractor.nix b/nixpkgs/nixos/modules/services/desktops/pantheon/contractor.nix new file mode 100644 index 00000000000..2638a21df73 --- /dev/null +++ b/nixpkgs/nixos/modules/services/desktops/pantheon/contractor.nix @@ -0,0 +1,41 @@ +# 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" + ]; + + }; + +} diff --git a/nixpkgs/nixos/modules/services/desktops/pantheon/files.nix b/nixpkgs/nixos/modules/services/desktops/pantheon/files.nix new file mode 100644 index 00000000000..577aad6c298 --- /dev/null +++ b/nixpkgs/nixos/modules/services/desktops/pantheon/files.nix @@ -0,0 +1,38 @@ +# pantheon files daemon. + +{ config, pkgs, lib, ... }: + +with lib; + +{ + + meta.maintainers = pkgs.pantheon.maintainers; + + ###### interface + + options = { + + services.pantheon.files = { + + enable = mkEnableOption "pantheon files daemon"; + + }; + + }; + + + ###### implementation + + config = mkIf config.services.pantheon.files.enable { + + environment.systemPackages = [ + pkgs.pantheon.elementary-files + ]; + + services.dbus.packages = [ + pkgs.pantheon.elementary-files + ]; + + }; + +} |