about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-01-02 21:23:01 -0800
committerWilliam A. Kennington III <william@wkennington.com>2015-01-03 21:45:16 -0800
commit8ec82fcb18cb909164710f71298164dcb5fb6ea2 (patch)
tree4bae7eca3388d6ac73005f24bd564b0fdbd933c6 /nixos
parentcc73af1d10d122e9da968a3847b83c975b5f198f (diff)
downloadnixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar.gz
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar.bz2
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar.lz
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar.xz
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.tar.zst
nixlib-8ec82fcb18cb909164710f71298164dcb5fb6ea2.zip
nixos/samba: Allow package version setting
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/network-filesystems/samba.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix
index 1199fa316f91..6fcf89999523 100644
--- a/nixos/modules/services/network-filesystems/samba.nix
+++ b/nixos/modules/services/network-filesystems/samba.nix
@@ -9,7 +9,7 @@ let
   logDir = "/var/log/samba";
   privateDir = "/var/samba/private";
 
-  inherit (pkgs) samba;
+  samba = cfg.package;
 
   setupScript =
     ''
@@ -90,6 +90,14 @@ in
         ";
       };
 
+      package = mkOption {
+        default = pkgs.samba;
+        example = pkgs.samba4;
+        description = ''
+          Defines which package should be used for the samba server.
+        '';
+      };
+
       syncPasswordsByPam = mkOption {
         default = false;
         description = "