move alacritty to separate home module

This commit is contained in:
2024-01-30 09:33:43 +01:00
parent 30948764c6
commit 900d07ae77
3 changed files with 23 additions and 6 deletions

View File

@ -0,0 +1,21 @@
{ config, lib, pkgs, inputs, ... }:
with lib;
let cfg = config.modules.alacritty;
in {
options.modules.alacritty = { enable = mkOption { default = false; }; };
config = mkIf cfg.enable {
# Does not work on non-nixos due to opengl
# home.packages = with pkgs; [ alacritty ];
home.file = {
".config/alacritty/theme".source = "${inputs.alacritty-theme}";
".config/alacritty" = {
source = ../../alacritty;
recursive = true;
};
};
};
}