meat/nix/module.nix
atagen eeb050b821
Some checks failed
Nix Build / nix build (push) Failing after 43s
nu
2026-05-19 23:47:04 +10:00

39 lines
842 B
Nix

{
pkgs,
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";
};
differ = mkOption {
type = types.package;
description = "diffing tool to use";
default = pkgs.dix;
};
monitor = mkOption {
type = types.package;
description = "nix monitoring tool to use";
default = pkgs.nix-output-monitor;
};
};
config = lib.mkIf cfg.enable {
environment.sessionVariables.MEATS = cfg.flake;
environment.systemPackages = [
cfg.package
];
};
}