aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLeon Kowarschick <5300871+elkowar@users.noreply.github.com>2020-07-03 19:09:35 +0200
committerRobert Helgesson <robert@rycee.net>2020-07-27 17:08:10 +0200
commit2e7935767f2bc49ec45cd7a92289a208882c1797 (patch)
treed4cd7ed5b219ce628820a86e541db310f7e28f83 /modules
parent89adfc9f0168e4aff48157c9cc84913c852d6a48 (diff)
alacritty: add package option
PR #1372
Diffstat (limited to 'modules')
-rw-r--r--modules/programs/alacritty.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/programs/alacritty.nix b/modules/programs/alacritty.nix
index 69b9ea9673d..ea908f2b056 100644
--- a/modules/programs/alacritty.nix
+++ b/modules/programs/alacritty.nix
@@ -11,6 +11,13 @@ in {
programs.alacritty = {
enable = mkEnableOption "Alacritty";
+ package = mkOption {
+ type = types.package;
+ default = pkgs.alacritty;
+ defaultText = literalExample "pkgs.alacritty";
+ description = "The Alacritty package to install.";
+ };
+
settings = mkOption {
type = types.attrs;
default = { };
@@ -41,7 +48,7 @@ in {
config = mkMerge [
(mkIf cfg.enable {
- home.packages = [ pkgs.alacritty ];
+ home.packages = [ cfg.package ];
xdg.configFile."alacritty/alacritty.yml" = mkIf (cfg.settings != { }) {
text =