aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
commit80d90d9b204f7c17912740f9f414fe5d59f293ba (patch)
tree5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix
parent3a31a84c7d3e589035ad08499206aac44a81f424 (diff)
parent83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff)
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix')
-rw-r--r--infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix b/infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix
index 69386cdbb381..41483d80a2dd 100644
--- a/infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix
+++ b/infra/libkookie/nixpkgs/nixos/modules/services/misc/disnix.nix
@@ -34,6 +34,14 @@ in
defaultText = "pkgs.disnix";
};
+ enableProfilePath = mkEnableOption "exposing the Disnix profiles in the system's PATH";
+
+ profiles = mkOption {
+ type = types.listOf types.string;
+ default = [ "default" ];
+ example = [ "default" ];
+ description = "Names of the Disnix profiles to expose in the system's PATH";
+ };
};
};
@@ -44,6 +52,7 @@ in
dysnomia.enable = true;
environment.systemPackages = [ pkgs.disnix ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService;
+ environment.variables.PATH = lib.optionals cfg.enableProfilePath (map (profileName: "/nix/var/nix/profiles/disnix/${profileName}/bin" ) cfg.profiles);
services.dbus.enable = true;
services.dbus.packages = [ pkgs.disnix ];
@@ -68,7 +77,8 @@ in
++ optional config.services.postgresql.enable "postgresql.service"
++ optional config.services.tomcat.enable "tomcat.service"
++ optional config.services.svnserve.enable "svnserve.service"
- ++ optional config.services.mongodb.enable "mongodb.service";
+ ++ optional config.services.mongodb.enable "mongodb.service"
+ ++ optional config.services.influxdb.enable "influxdb.service";
restartIfChanged = false;