meat/nix/module.nix
atagen 6b4a286da4
All checks were successful
Nix Build / nix build (push) Successful in 14s
use nom and nix-build
2025-07-20 15:36:43 +10:00

31 lines
619 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";
};
};
config = lib.mkIf cfg.enable {
environment.sessionVariables.MEATS = cfg.flake;
environment.systemPackages = [
cfg.package
pkgs.nh # for now..
pkgs.nix-output-monitor
];
};
}