feat: better modules aragement.
This commit is contained in:
parent
de11ee0676
commit
6e967a751f
49 changed files with 27 additions and 19 deletions
19
modules/linux/home-manager/browsers/default.nix
Normal file
19
modules/linux/home-manager/browsers/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./librewolf.nix
|
||||
./chromium.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
crony.browsers.enable = lib.mkEnableOption "Enable my browsers and customize them";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.browsers.enable {
|
||||
crony.browsers.librewolf.enable = lib.mkDefault true;
|
||||
crony.browsers.chromium.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue