ocaml
This commit is contained in:
commit
e598b04cae
31 changed files with 946 additions and 0 deletions
32
nix/module.nix
Normal file
32
nix/module.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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
|
||||
pkgs.dix
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue