Skip to content

snowfallorg.users.*.admin exists on NixOS but doesn't exist on Mac #180

@pinage404

Description

@pinage404

Current situation

The option snowfallorg.users.*.admin exists on NixOS

admin = mkOption {

But doesn't exist on Mac

Problem

This makes more difficult to reuse the same config across machines

Expected

I would like to have an option on both OS

Fallback

If admin option is not doable on Mac, i would prefer this option exists :

  1. noop : does nothing whatever given value
  2. assert : warn and explain the situation to the user that the value should be false

I can do a PR if you need with your preferred solution

Current workaround

  snowfallorg = lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
    users.pinage404.admin = true;
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions