]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add myuids flake
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 29 Dec 2020 22:31:26 +0000 (23:31 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 29 Dec 2020 22:45:59 +0000 (23:45 +0100)
flakes/myuids/flake.nix [new file with mode: 0644]

diff --git a/flakes/myuids/flake.nix b/flakes/myuids/flake.nix
new file mode 100644 (file)
index 0000000..1a3a9b4
--- /dev/null
@@ -0,0 +1,42 @@
+{
+  description = "Immae Specific uids";
+
+  outputs = { self }: {
+    lib = {
+      # Check that there is no clash with nixos/modules/misc/ids.nix
+      uids = {
+        acme = 388;
+        backup = 389;
+        vhost = 390;
+        openarc = 391;
+        opendmarc = 392;
+        peertube = 394;
+        redis = 395;
+        nullmailer = 396;
+        mediagoblin = 397;
+        diaspora = 398;
+        mastodon = 399;
+      };
+      gids = {
+        nagios = 11; # commented in the ids file
+        acme = 388;
+        backup = 389;
+        vhost = 390;
+        openarc = 391;
+        opendmarc = 392;
+        peertube = 394;
+        redis = 395;
+        nullmailer = 396;
+        mediagoblin = 397;
+        diaspora = 398;
+        mastodon = 399;
+      };
+    };
+    nixosModule = { ... }: {
+      config = {
+        ids.uids = self.lib.uids;
+        ids.gids = self.lib.gids;
+      };
+    };
+  };
+}