From 8ec82fcb18cb909164710f71298164dcb5fb6ea2 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 2 Jan 2015 21:23:01 -0800 Subject: nixos/samba: Allow package version setting --- nixos/modules/services/network-filesystems/samba.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nixos') 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 = " -- cgit 1.4.1