nixpkgs/nixos/modules/programs/darling.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
463 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2023-05-01 23:39:19 +00:00
let
cfg = config.programs.darling;
in
{
2023-05-01 23:39:19 +00:00
options = {
programs.darling = {
enable = lib.mkEnableOption "Darling, a Darwin/macOS compatibility layer for Linux";
package = lib.mkPackageOption pkgs "darling" { };
2023-05-01 23:39:19 +00:00
};
};
config = lib.mkIf cfg.enable {
security.wrappers.darling = {
source = lib.getExe cfg.package;
owner = "root";
group = "root";
setuid = true;
};
};
}