1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: provide package definition for kanidm-secret-manipulator

This commit is contained in:
oddlama 2023-08-19 18:40:35 +02:00
parent 8917449b70
commit 36e9f22602
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 30 additions and 0 deletions

View file

@ -19,6 +19,7 @@
in { in {
options.services.kanidm.provision = { options.services.kanidm.provision = {
enable = mkEnableOption "provisioning of systems, groups and users"; enable = mkEnableOption "provisioning of systems, groups and users";
systems = { systems = {
}; };
}; };

View file

@ -1,4 +1,7 @@
[ [
(import ./caddy.nix) (import ./caddy.nix)
(import ./oauth2-proxy) (import ./oauth2-proxy)
(self: super: {
kanidm-secret-manipulator = self.callPackage ./kanidm-secret-manipulator {};
})
] ]

View file

@ -2,6 +2,9 @@
name = "kanidm-secret-manipulator" name = "kanidm-secret-manipulator"
version = "1.0.0" version = "1.0.0"
edition = "2021" edition = "2021"
authors = ["oddlama <oddlama@oddlama.org>"]
description = "A helper utility that modifies the kanidm database to allow provisioning declarative secrets with NixOS"
license = "MIT"
[dependencies] [dependencies]
anyhow = "1.0.75" anyhow = "1.0.75"

View file

@ -0,0 +1,23 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
sqlite,
}:
rustPlatform.buildRustPackage rec {
pname = "kanidm-secret-manipulator";
version = "1.0.0";
src = ./.;
cargoHash = "sha256-EAPlI5wZ6ZByafWnCJ199SShtOppErjKyrNHAQIqr/Y=";
nativeBuildInputs = [pkg-config];
buildInputs = [sqlite];
meta = with lib; {
description = "A helper utility that modifies the kanidm database to allow provisioning declarative secrets with NixOS";
license = licenses.mit;
maintainers = with maintainers; [oddlama];
mainProgram = "kanidm-secret-manipulator";
};
}