From 3b5888418ffbc9d07b8672f8ec0be33c438b1de8 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 17 Jun 2023 09:30:47 +0200 Subject: [PATCH] modules/idm: init --- modules/default.nix | 2 ++ modules/idm/default.nix | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 modules/idm/default.nix diff --git a/modules/default.nix b/modules/default.nix index f283746..80944da 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -9,6 +9,7 @@ let ./games ./hardened ./hyprspace + ./idm ./ipfs ./jackett ./laptop-config @@ -32,6 +33,7 @@ in rec { base = [ autopatch hardened + idm ]; networking = [ firewall ssh ]; diff --git a/modules/idm/default.nix b/modules/idm/default.nix new file mode 100644 index 0000000..cb25ad6 --- /dev/null +++ b/modules/idm/default.nix @@ -0,0 +1,25 @@ +{ pkgs, ... }: + +{ + services.kanidm = { + enableClient = true; + clientSettings = { + uri = "https://idm.privatevoid.net"; + }; + }; + + environment.systemPackages = let + idmAlias = pkgs.runCommand "kanidm-idm-alias" {} '' + mkdir -p $out/bin + ln -s ${pkgs.kanidm}/bin/kanidm $out/bin/idm + mkdir -p $out/share/bash-completion/completions + cat >$out/share/bash-completion/completions/idm.bash <