2023-05-24 13:37:59 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.darling;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
programs.darling = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "Darling, a Darwin/macOS compatibility layer for Linux";
|
2024-01-02 11:29:13 +00:00
|
|
|
package = lib.mkPackageOption pkgs "darling" {};
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
security.wrappers.darling = {
|
|
|
|
source = lib.getExe cfg.package;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
setuid = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|