about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2021-05-06 19:28:57 +0200
committerSander van der Burg <sander.van.der.burg@mendix.com>2021-05-06 19:33:02 +0200
commit77295e7e6b366d593dc25cdbf3b1b44ccd6e2007 (patch)
treeedd185ab94de7c28b651a210050a783b7d62a7a0 /nixos
parenta4c768fccd8275e7f6f6f22d9f66290a8c9613ae (diff)
downloadnixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar.gz
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar.bz2
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar.lz
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar.xz
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.tar.zst
nixlib-77295e7e6b366d593dc25cdbf3b1b44ccd6e2007.zip
nixos/disnix: configure the remote client by default, if multi-user mode has been enabled
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/disnix.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/disnix.nix b/nixos/modules/services/misc/disnix.nix
index aea49511327d..24a259bb4d2b 100644
--- a/nixos/modules/services/misc/disnix.nix
+++ b/nixos/modules/services/misc/disnix.nix
@@ -53,6 +53,7 @@ in
 
     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);
+    environment.variables.DISNIX_REMOTE_CLIENT = lib.optionalString (cfg.enableMultiUser) "disnix-client";
 
     services.dbus.enable = true;
     services.dbus.packages = [ pkgs.disnix ];