mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(idp): ipa and krb5 hosts
This commit is contained in:
parent
81b20878f1
commit
1ed36b4f66
19 changed files with 327 additions and 83 deletions
|
|
@ -7,6 +7,7 @@
|
|||
overlays = [
|
||||
inputs.deploy-rs.overlay
|
||||
inputs.arcexprs.overlays.default
|
||||
(import ./samba.nix)
|
||||
(final: prev: {
|
||||
jemalloc =
|
||||
if final.hostPlatform != "aarch64-darwin"
|
||||
|
|
|
|||
30
overlays/samba.nix
Normal file
30
overlays/samba.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
final: prev: let
|
||||
inherit (final) lib;
|
||||
in {
|
||||
freeipa-ipasam = let
|
||||
attrs = old: {
|
||||
pname = "freeipa-ipasam";
|
||||
patches = old.patches or [ ] ++ [
|
||||
../packages/freeipa-ipasam.patch
|
||||
];
|
||||
configureFlags = lib.filter (f: f != "--disable-server") old.configureFlags;
|
||||
};
|
||||
overrides = {
|
||||
samba = final.samba-ldap;
|
||||
};
|
||||
in (final.freeipa.override overrides).overrideAttrs attrs;
|
||||
|
||||
samba-ldap = final.samba.override {
|
||||
enableLDAP = true;
|
||||
};
|
||||
|
||||
samba-ipa = final.samba-ldap.overrideAttrs (old: {
|
||||
buildInputs = old.buildInputs ++ [
|
||||
final.freeipa-ipasam
|
||||
];
|
||||
postInstall = ''
|
||||
${old.postInstall or ""}
|
||||
cp -a ${final.freeipa-ipasam}/lib/samba/pdb/ipasam.so $out/lib/samba/pdb/
|
||||
'';
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue