Add more scripts, more cleanup

This commit is contained in:
2024-06-09 09:33:23 +02:00
parent 4e8291bb14
commit 35e84fade2
7 changed files with 74 additions and 33 deletions

View File

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