summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtemis Tosini <me@artem.ist>2019-07-31 23:28:13 +0000
committerArtemis Tosini <me@artem.ist>2019-07-31 23:28:13 +0000
commit42c3eefd778e37c8602f45cdef89fe001f108aad (patch)
tree0da3138c9381d32aeb675a8f7341c28f17c1b0d5
parent06183c2a27e4374eb5f1a7a7abbb1bd96a63e156 (diff)
downloadnixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar.gz
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar.bz2
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar.lz
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar.xz
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.tar.zst
nixpkgs-42c3eefd778e37c8602f45cdef89fe001f108aad.zip
nixos/xonsh: Use the package specified in the package option
-rw-r--r--nixos/modules/programs/xonsh.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/programs/xonsh.nix b/nixos/modules/programs/xonsh.nix
index ceab9b5db93..5cd2a49f807 100644
--- a/nixos/modules/programs/xonsh.nix
+++ b/nixos/modules/programs/xonsh.nix
@@ -26,6 +26,7 @@ in
 
       package = mkOption {
         type = types.package;
+        default = pkgs.xonsh;
         example = literalExample "pkgs.xonsh.override { configFile = \"/path/to/xonshrc\"; }";
         description = ''
           xonsh package to use.
@@ -46,11 +47,11 @@ in
 
     environment.etc."xonshrc".text = cfg.config;
 
-    environment.systemPackages = [ pkgs.xonsh ];
+    environment.systemPackages = [ cfg.package ];
 
     environment.shells =
       [ "/run/current-system/sw/bin/xonsh"
-        "${pkgs.xonsh}/bin/xonsh"
+        "${cfg.package}/bin/xonsh"
       ];
 
   };