From 1be9e64bb4556676f65e6e5044e04426848849c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 29 Dec 2020 23:31:26 +0100 Subject: [PATCH] Add myuids flake --- flakes/myuids/flake.nix | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 flakes/myuids/flake.nix diff --git a/flakes/myuids/flake.nix b/flakes/myuids/flake.nix new file mode 100644 index 0000000..1a3a9b4 --- /dev/null +++ b/flakes/myuids/flake.nix @@ -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; + }; + }; + }; +} -- 2.41.0