major restructuring for using snowfall
This commit is contained in:
18
modules/home/alacritty/default.nix
Normal file
18
modules/home/alacritty/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ 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/alacritty.toml".source = ./alacritty.toml;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user