refactor(browser): create single browser module
This commit is contained in:
33
home/modules/browser/default.nix
Normal file
33
home/modules/browser/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user