sneeuwvlok/modules/home/application/default.nix
2025-07-28 16:52:48 +02:00

26 lines
512 B
Nix

{ inputs, config, lib, pkgs, namespace, ... }:
let
inherit (lib) mkIf mkOption;
inherit (lib.types) subModule;
cfg = config.${namespace}.application;
in
{
options.${namespace}.application = {
defaults = mkOption {
type = subModule {
browser = mkOption {
type = enum [ "ladybird" "zen" ];
default = "zen";
example = "ladybird";
};
};
};
};
config = {
home.sessionVariables = {
BROWSER = cfg.defaults.browser;
};
};
}