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

オープン
#180 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞

調査の方向性

Compare the user option definitions in modules/nixos/user/default.nix and modules/darwin/user/default.nix, starting with how the NixOS admin option is declared. Determine whether Darwin can support the same option or needs the proposed noop or assertion behavior. Done means shared configuration can set snowfallorg.users.*.admin on both platforms with behavior that is explicit and consistent.

索引モデルが issue の本文から書いたものです。

説明

Current situation

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

https://github.com/snowfallorg/lib/blob/02d941739f98a09e81f3d2d9b3ab08918958beac/modules/nixos/user/default.nix#L58

But doesn't exist on Mac
https://github.com/snowfallorg/lib/blob/02d941739f98a09e81f3d2d9b3ab08918958beac/modules/darwin/user/default.nix#L43

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;
  };
主要言語
Nix
スター
627
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

snowfallorg/lib のほかの issue

snowfallorg/lib の issue をすべて見る

似ている issue

Operating Systems の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。