config/lib/module/default.nix
2025-05-28 17:04:41 -04:00

30 lines
553 B
Nix

{
lib,
inputs,
...
}:
with lib; rec {
mkOpt = type: default: description:
mkOption {inherit type default description;};
mkOpt' = type: default: mkOpt type default null;
mkBoolOpt = mkOpt types.bool;
mkStringOpt = mkOpt types.str;
mkBoolOpt' = mkOpt' types.bool;
enabled = {enable = true;};
disabled = {enable = false;};
# Check if the current system is Darwin
isDarwin = pkgs: pkgs.stdenv.isDarwin;
nixos-stable = import inputs.nixos-stable {
system = "x86_64-linux";
config = {};
overlays = [];
};
}