chore: make namespace generic so people can copy easier
This commit is contained in:
parent
88593f53a2
commit
7ad43f35c8
45 changed files with 249 additions and 217 deletions
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.tools.direnv;
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.${namespace}) mkBoolOpt enabled;
|
||||
cfg = config.${namespace}.tools.direnv;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.tools.direnv = with types; {
|
||||
options.${namespace}.tools.direnv = {
|
||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
{
|
||||
options,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
namespace,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.tools.git;
|
||||
user = config.wyrdgard.user;
|
||||
inherit (lib) mkIf types;
|
||||
cfg = config.${namespace}.tools.git;
|
||||
user = config.${namespace}.user;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.tools.git = {
|
||||
options.${namespace}.tools.git = {
|
||||
enable = mkBoolOpt true "Enable Git (Default true)";
|
||||
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
||||
userEmail = mkOpt types.str user.email "The email to configure git with.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue