flake: refactor references to hlissner/dotfiles
This commit is contained in:
parent
3ccf76d134
commit
0fe2c66bc0
26 changed files with 54 additions and 211 deletions
|
@ -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
18
lib/options.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue