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 88593f53a2
commit 7ad43f35c8
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1763BB530F50279E
45 changed files with 249 additions and 217 deletions

View file

@ -1,18 +1,18 @@
{
options,
config,
pkgs,
lib,
inputs,
lib,
namespace,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.autoUpgrade;
cfg = config.${namespace}.system.autoUpgrade;
in
{
options.wyrdgard.system.autoUpgrade = with types; {
options.${namespace}.system.autoUpgrade = with types; {
enable = mkEnableOption "Enable auto-upgrade";
time = mkOpt str "02:00" "Time to run auto-upgrade";
};

View file

@ -1,16 +1,17 @@
{
config,
pkgs,
lib,
namespace,
pkgs,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.boot;
cfg = config.${namespace}.system.boot;
in
{
options.wyrdgard.system.boot = with types; {
options.${namespace}.system.boot = with types; {
enable = mkBoolOpt false "Whether or not to enable booting.";
};

View file

@ -1,17 +1,18 @@
{
options,
config,
pkgs,
lib,
namespace,
options,
pkgs,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.fonts;
cfg = config.${namespace}.system.fonts;
in
{
options.wyrdgard.system.fonts = with types; {
options.${namespace}.system.fonts = with types; {
enable = mkBoolOpt false "Whether or not to manage fonts.";
fonts = mkOpt (listOf package) [ ] "Custom font packages to install.";
};

View file

@ -1,17 +1,18 @@
{
options,
config,
lib,
namespace,
options,
pkgs,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.hardware.audio;
cfg = config.${namespace}.system.hardware.audio;
in
{
options.wyrdgard.system.hardware.audio = with types; {
options.${namespace}.system.hardware.audio = with types; {
enable = mkBoolOpt false "Whether or not to enable audio";
};
@ -34,8 +35,8 @@ in
wireplumber.configPackages = [
(pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf" ''
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
wireplumber.settings = {
bluetooth.autoswitch-to-headset-profile = false
}
'')
(pkgs.writeTextDir "share/wireplumber/policy.lua.d/11-bluetooth-policy.conf" ''

View file

@ -1,17 +1,18 @@
{
options,
config,
lib,
namespace,
pkgs,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.hardware.bluetooth;
cfg = config.${namespace}.system.hardware.bluetooth;
in
{
options.wyrdgard.system.hardware.bluetooth = with types; {
options.${namespace}.system.hardware.bluetooth = with types; {
enable = mkBoolOpt false "Whether or not to enable bluetooth";
};

View file

@ -1,17 +1,17 @@
{
options,
config,
lib,
pkgs,
namespace,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.hardware.networking;
cfg = config.${namespace}.system.hardware.networking;
in
{
options.wyrdgard.system.hardware.networking = with types; {
options.${namespace}.system.hardware.networking = with types; {
enable = mkBoolOpt false "Whether or not to enable networking";
};

View file

@ -1,17 +1,17 @@
{
options,
config,
pkgs,
lib,
namespace,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.locale;
cfg = config.${namespace}.system.locale;
in
{
options.wyrdgard.system.locale = with types; {
options.${namespace}.system.locale = with types; {
enable = mkBoolOpt false "Whether or not to manage locale settings.";
};

View file

@ -1,17 +1,17 @@
{
options,
config,
pkgs,
lib,
namespace,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.time;
cfg = config.${namespace}.system.time;
in
{
options.wyrdgard.system.time = with types; {
options.${namespace}.system.time = with types; {
enable = mkBoolOpt false "Whether or not to configure timezone information.";
};

View file

@ -1,16 +1,17 @@
{
options,
config,
lib,
namespace,
options,
...
}:
with lib;
with lib.wyrdgard;
with lib.${namespace};
let
cfg = config.wyrdgard.system.xkb;
cfg = config.${namespace}.system.xkb;
in
{
options.wyrdgard.system.xkb = with types; {
options.${namespace}.system.xkb = with types; {
enable = mkBoolOpt false "Whether or not to configure xkb.";
};