Update zen
This commit is contained in:
parent
029a7b86d7
commit
b5f4e15db8
3 changed files with 3 additions and 14 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
zen-browser.url = "github:fufexan/zen-browser-flake";
|
zen-browser.url = "github:youwen5/zen-browser-flake";
|
||||||
|
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
base16.url = "github:SenchoPens/base16.nix";
|
base16.url = "github:SenchoPens/base16.nix";
|
||||||
|
|
|
||||||
|
|
@ -14,22 +14,11 @@
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Enables the zen browser";
|
description = "Enables the zen browser";
|
||||||
};
|
};
|
||||||
optimization = lib.mkOption {
|
|
||||||
default = "specific";
|
|
||||||
example = "generic";
|
|
||||||
type =
|
|
||||||
with lib.types;
|
|
||||||
(enum [
|
|
||||||
"specific"
|
|
||||||
"generic"
|
|
||||||
]);
|
|
||||||
description = "Enables the zen browser";
|
|
||||||
};
|
|
||||||
# TODO configure zen
|
# TODO configure zen
|
||||||
};
|
};
|
||||||
config = lib.mkIf config.mods.browser.zen.enable (
|
config = lib.mkIf config.mods.browser.zen.enable (
|
||||||
lib.optionalAttrs (options ? home.packages) {
|
lib.optionalAttrs (options ? home.packages) {
|
||||||
home.packages = [ inputs.zen-browser.packages."${system}".${config.mods.browser.zen.optimization} ];
|
home.packages = [ inputs.zen-browser.packages."${system}".default ];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
description = "The email client";
|
description = "The email client";
|
||||||
};
|
};
|
||||||
browser = lib.mkOption {
|
browser = lib.mkOption {
|
||||||
default = inputs.zen-browser.packages.${pkgs.system}.specific;
|
default = inputs.zen-browser.packages.${pkgs.system}.default;
|
||||||
example = "firefox";
|
example = "firefox";
|
||||||
type =
|
type =
|
||||||
with lib.types;
|
with lib.types;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue