Samba: Difference between revisions
imported>Jfly No edit summary |
imported>Mentallyinspired m added overrideAttrs to fix bug with missing path for dnspython, tdb, ldb and talloc |
||
Line 266: | Line 266: | ||
# Rebuild Samba with LDAP, MDNS and Domain Controller support | # Rebuild Samba with LDAP, MDNS and Domain Controller support | ||
nixpkgs.overlays = [ (self: super: { | nixpkgs.overlays = [ (self: super: { | ||
samba = super.samba.override { | samba = (super.samba.override { | ||
enableLDAP = true; | enableLDAP = true; | ||
enableMDNS = true; | enableMDNS = true; | ||
enableDomainController = true; | enableDomainController = true; | ||
}; | enableProfiling = true; # Optional for logging | ||
} ) ]; | }).overrideAttrs (finalAttrs: previousAttrs: { # Set pythonpath manually as it is not set on 22.11 due to bug | ||
pythonPath = with super; [ python3Packages.dnspython tdb ldb talloc ]; | |||
}); | |||
})]; | |||
# Disable default Samba `smbd` service, we will be using the `samba` server binary | # Disable default Samba `smbd` service, we will be using the `samba` server binary |