flake: refactor references to hlissner/dotfiles

This commit is contained in:
Infinidoge 2023-09-26 16:53:13 -04:00
parent 3ccf76d134
commit 0fe2c66bc0
26 changed files with 54 additions and 211 deletions

View file

@ -36,4 +36,6 @@ rec {
import ./digga.nix { inherit lib; }
) // (
import ./hosts.nix { inherit lib; }
) // (
import ./options.nix { inherit lib; }
))

18
lib/options.nix Normal file
View file

@ -0,0 +1,18 @@
# 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;
};
}