chore: make namespace generic so people can copy easier
This commit is contained in:
parent
12d58b9636
commit
0b694ff210
45 changed files with 249 additions and 217 deletions
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
|
|
@ -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" ''
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue