26 lines
495 B
Nix
26 lines
495 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkOption types;
|
|
cfg = config.programs.meat;
|
|
in
|
|
{
|
|
options.programs.meat = {
|
|
enable = mkEnableOption "meat";
|
|
flake = mkOption {
|
|
type = with types; either path str;
|
|
description = "path to your system flake";
|
|
};
|
|
package = mkOption {
|
|
type = types.package;
|
|
description = "your ideal meat";
|
|
};
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
environment.sessionVariables.MEATS = cfg.flake;
|
|
};
|
|
}
|