working emacs?

This commit is contained in:
Charlie Root 2024-05-19 23:38:49 +02:00
commit 3fc5284ec8
6 changed files with 33 additions and 23 deletions

17
lib/options.nix Normal file
View 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;
};
}