Add a role for ship of harkinian (the pc port of Ocarina of Time).

This commit is contained in:
Tom Alexander
2025-02-13 18:40:35 -05:00
parent fea86b00b4
commit ab6f7dbea5
6 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{ config, lib, ... }:
let
inherit (builtins) elem;
inherit (lib) getName mkOption;
inherit (lib.types) listOf str;
in
{
# Pending https://github.com/NixOS/nixpkgs/issues/55674
options.allowedUnfree = mkOption {
type = listOf str;
default = [ ];
};
config.nixpkgs.config.allowUnfreePredicate = p: elem (getName p) config.allowedUnfree;
}