aight, making progress
This commit is contained in:
parent
c2d6c719a2
commit
9aa634bd71
37 changed files with 451 additions and 620 deletions
26
modules/home/application/default.nix
Normal file
26
modules/home/application/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue