1
0
Fork 0

general overhaul

This commit is contained in:
Philipp 2025-02-27 17:33:29 +01:00
parent 39fb8c64dc
commit d0a9427fd0
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
26 changed files with 657 additions and 2871 deletions

View file

@ -20,8 +20,8 @@ let
cursor_shape = "Beam";
};
defaultFont = {
name = "Hack Nerd Font Mono";
package = pkgs.nerdfonts;
name = "Hack";
package = pkgs.nerd-fonts.hack;
size = 12;
};
in

View file

@ -60,7 +60,9 @@ in
extraConfig = mkOpt str "" "Extra configuration for the user profile JS file.";
userChrome = mkOpt str "" "Extra configuration for the user chrome CSS file.";
settings = mkOpt attrs defaultSettings "Settings to apply to the profile.";
extensions = mkOpt (listOf package) defaultExtensions "Extra Librewolf extensions to install.";
extensions.packages =
mkOpt (listOf package) defaultExtensions
"Extra Librewolf extensions to install.";
search = mkOpt attrs defaultSearch "Extra search engines to define.";
};
@ -81,6 +83,7 @@ in
name = "Philipp";
isDefault = true;
};
};
};

View file

@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.mpv;
in
{
options.${namespace}.apps.mpv = with types; {
enable = mkBoolOpt false "Whether or not to enable mpv.";
};
config = mkIf cfg.enable {
programs.mpv = {
enable = true;
};
};
}

View file

@ -0,0 +1,27 @@
{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.thunderbird;
in
{
options.${namespace}.apps.thunderbird = with types; {
enable = mkBoolOpt false "Whether or not to enable Firefox.";
};
config = mkIf cfg.enable {
programs.thunderbird = {
enable = true;
profiles."philipp" = {
isDefault = true;
};
};
};
}