adjusted workvm configuration

This commit is contained in:
christoph.hollizeck 2024-03-26 22:05:03 +01:00
parent 48483e06b5
commit 381b800063
36 changed files with 466 additions and 326 deletions

View file

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

View file

@ -1,17 +1,17 @@
{ options
, config
, pkgs
, lib
, ...
{
options,
config,
pkgs,
lib,
...
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.system.fonts;
in
{
in {
options.wyrdgard.system.fonts = with types; {
enable = mkBoolOpt false "Whether or not to manage fonts.";
fonts = mkOpt (listOf package) [ ] "Custom font packages to install.";
fonts = mkOpt (listOf package) [] "Custom font packages to install.";
};
config = mkIf cfg.enable {
@ -26,7 +26,7 @@ in
fonts.packages = with pkgs;
[
(nerdfonts.override { fonts = [ "Jetbrains Mono" "CodeNewRoman" "NerdFontsSymbolsOnly" ]; })
(nerdfonts.override {fonts = ["CodeNewRoman" "NerdFontsSymbolsOnly"];})
font-awesome
powerline-fonts
powerline-symbols

View file

@ -1,10 +1,14 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.system.hardware.audio;
in
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.system.hardware.audio;
in {
options.wyrdgard.system.hardware.audio = with types; {
enable = mkBoolOpt false "Whether or not to enable audio";
};
@ -26,7 +30,5 @@ in
alsa.support32Bit = true;
pulse.enable = true;
};
};
}

View file

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

View file

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

View file

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

View file

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

View file

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