diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2020-11-28 20:14:51 +0100 |
---|---|---|
committer | Sander van der Burg <sander.van.der.burg@mendix.com> | 2020-11-28 20:15:21 +0100 |
commit | 336628268fd8306e5015bf8c5e8d4ef10f43625a (patch) | |
tree | 78fa3d4e0f15e28ec9fcef9e6ea105f7bc8de1b1 /nixos | |
parent | 5e392940cfca8f8b99995096ffc56f2687a35407 (diff) | |
download | nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar.gz nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar.bz2 nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar.lz nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar.xz nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.tar.zst nixpkgs-336628268fd8306e5015bf8c5e8d4ef10f43625a.zip |
nixos/disnix: reorder startup to take MongoDB and InfluxDB into account, add option to add Disnix profile to the system PATH
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/disnix.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/disnix.nix b/nixos/modules/services/misc/disnix.nix index 69386cdbb38..41483d80a2d 100644 --- a/nixos/modules/services/misc/disnix.nix +++ b/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; |