refactor(browser): create single browser module

This commit is contained in:
2026-01-12 17:45:45 +01:00
parent 27bef572c7
commit 595cabbb88
9 changed files with 246 additions and 122 deletions

View File

@@ -0,0 +1,33 @@
{ lib, ... }:
{
options.browser = {
primary = lib.mkOption {
type = lib.types.enum [
"firefox"
"chromium"
"librewolf"
];
default = "firefox";
description = "Primary web browser";
};
secondary = lib.mkOption {
type = lib.types.nullOr (
lib.types.enum [
"firefox"
"chromium"
"librewolf"
]
);
default = null;
description = "Optional secondary web browser";
};
};
imports = [
./firefox.nix
./librewolf.nix
./chromium.nix
];
}