chore: make namespace generic so people can copy easier
This commit is contained in:
parent
0158f7ff06
commit
0562818aa7
45 changed files with 249 additions and 217 deletions
|
@ -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;
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.submodules.basics;
|
||||
cfg = config.${namespace}.submodules.basics;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.submodules.basics = with types; {
|
||||
options.${namespace}.submodules.basics = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
||||
};
|
||||
|
||||
|
@ -31,7 +32,7 @@ in
|
|||
htop
|
||||
];
|
||||
|
||||
wyrdgard = {
|
||||
${namespace} = {
|
||||
nix = enabled;
|
||||
|
||||
apps.cli-apps.helix = enabled;
|
||||
|
|
|
@ -1,24 +1,25 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.submodules.games;
|
||||
cfg = config.${namespace}.submodules.games;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.submodules.games = with types; {
|
||||
options.${namespace}.submodules.games = with types; {
|
||||
enable = mkBoolOpt false "Whether or not you want to enable steam and other games";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ prismlauncher ];
|
||||
|
||||
wyrdgard = {
|
||||
${namespace} = {
|
||||
apps = {
|
||||
steam = enabled;
|
||||
};
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.wyrdgard.submodules.socials;
|
||||
cfg = config.${namespace}.submodules.socials;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.submodules.socials = with types; {
|
||||
options.${namespace}.submodules.socials = with types; {
|
||||
enable = mkBoolOpt false "Whether to enable social apps";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
wyrdgard = {
|
||||
${namespace} = {
|
||||
apps = {
|
||||
discord = enabled;
|
||||
teamspeak = enabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue