organizing config and getting rid of withs as much as possible
This commit is contained in:
parent
358d57e8eb
commit
3a31a8b5ee
12 changed files with 142 additions and 57 deletions
34
modules/nixos/apps/zen-browser/default.nix
Normal file
34
modules/nixos/apps/zen-browser/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
system,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.apps.zen-browser;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps.zen-browser = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable zen browser";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
inputs.zen-browser.packages."${system}".default
|
||||
];
|
||||
|
||||
environment.etc = {
|
||||
"1password/custom_allowed_browsers" = {
|
||||
text = ''
|
||||
.zen-wrapped
|
||||
'';
|
||||
mode = "0755";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue