aboutsummaryrefslogblamecommitdiff
path: root/flakes/myuids/flake.nix
blob: cc6dc665c106b5c99d0568d9f018c0435e3ea1f2 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                    
                       
                             













                                                
                       




















                                 
{
  description = "Immae Specific uids";

  outputs = { self }: {
    lib = {
      # Check that there is no clash with nixos/modules/misc/ids.nix
      uids = {
        cryptpad = 386;
        postfixscripts = 387;
        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
        cryptpad = 386;
        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;
      };
    };
  };
}