diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/private/environment-dummy | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'flakes/private/environment-dummy')
-rw-r--r-- | flakes/private/environment-dummy/flake.nix | 18 | ||||
-rw-r--r-- | flakes/private/environment-dummy/ldap.conf | 13 | ||||
-rw-r--r-- | flakes/private/environment-dummy/vars.yml | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/flakes/private/environment-dummy/flake.nix b/flakes/private/environment-dummy/flake.nix new file mode 100644 index 0000000..5ebc27f --- /dev/null +++ b/flakes/private/environment-dummy/flake.nix | |||
@@ -0,0 +1,18 @@ | |||
1 | { | ||
2 | description = '' | ||
3 | A dummy flake that contains a compatible structure to the one stored at | ||
4 | git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets | ||
5 | It is used as default value in "public" configurations | ||
6 | ''; | ||
7 | outputs = { self }: { | ||
8 | vars-file = ./vars.yml; | ||
9 | ldap-conf = ./ldap.conf; | ||
10 | environment-file = ./environment.nix; | ||
11 | nixosModule = self.nixosModules.my-environment; | ||
12 | nixosModules.my-environment = { ... }: { | ||
13 | config.myEnv = import self.environment-file; | ||
14 | }; | ||
15 | nixosModules.users-config-eldiron = { ... }: {}; | ||
16 | }; | ||
17 | } | ||
18 | |||
diff --git a/flakes/private/environment-dummy/ldap.conf b/flakes/private/environment-dummy/ldap.conf new file mode 100644 index 0000000..064a4be --- /dev/null +++ b/flakes/private/environment-dummy/ldap.conf | |||
@@ -0,0 +1,13 @@ | |||
1 | # Indices to maintain | ||
2 | index objectClass eq | ||
3 | index uid pres,eq | ||
4 | index mail pres,sub,eq | ||
5 | index cn pres,sub,eq | ||
6 | index sn pres,sub,eq | ||
7 | index dc eq | ||
8 | index krbPrincipalName eq | ||
9 | index member eq | ||
10 | index memberOf eq | ||
11 | |||
12 | access to * | ||
13 | by * none | ||
diff --git a/flakes/private/environment-dummy/vars.yml b/flakes/private/environment-dummy/vars.yml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/flakes/private/environment-dummy/vars.yml | |||
@@ -0,0 +1 @@ | |||
{} | |||