working emacs?
This commit is contained in:
parent
7481580f14
commit
3fc5284ec8
6 changed files with 33 additions and 23 deletions
17
lib/options.nix
Normal file
17
lib/options.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Taken from: https://github.com/hlissner/dotfiles/blob/master/lib/options.nix
|
||||
{ lib, ... }:
|
||||
|
||||
let inherit (lib) mkOption types;
|
||||
in {
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue