Added custom lib (stolen from hlissner's dotifles)

This commit is contained in:
marc
2022-11-14 21:19:51 +01:00
parent e22078b34a
commit 5c609ddd42
11 changed files with 202 additions and 113 deletions

18
lib/options.nix Normal file
View File

@@ -0,0 +1,18 @@
{ lib, ... }:
let
inherit (lib) mkOption types;
in
rec {
mkOpt = type: default:
mkOption { inherit type default; };
mkOpt' = type: default: description:
mkOption { inherit type default description; };
mkBoolOpt = default: mkOption {
inherit default;
type = types.bool;
example = true;
};
}