chore: make namespace generic so people can copy easier

This commit is contained in:
Christoph Hollizeck 2024-10-11 00:17:03 +02:00
parent 0158f7ff06
commit 0562818aa7
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
45 changed files with 249 additions and 217 deletions

View file

@ -1,16 +1,17 @@
{
config,
lib,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.wyrdgard) mkBoolOpt enabled;
cfg = config.wyrdgard.submodules.basics-wsl;
inherit (lib.${namespace}) mkBoolOpt enabled;
cfg = config.${namespace}.submodules.basics-wsl;
in
{
options.wyrdgard.submodules.basics-wsl = {
options.${namespace}.submodules.basics-wsl = {
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
};
@ -28,7 +29,7 @@ in
wsl-open
];
wyrdgard = {
${namespace} = {
nix = enabled;
apps.cli-apps.helix = enabled;