mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
3a022a374a
I think this is better for separating modules explicitly. This is also considered as there are similar objects between modules (e.g., NixOS and home-manager modules and users). Revert users module to old position
17 lines
353 B
Nix
17 lines
353 B
Nix
{ config, options, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.modules.alacritty;
|
|
in
|
|
{
|
|
options.modules.alacritty.enable = lib.mkEnableOption "Enable Alacritty config";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [ alacritty ];
|
|
xdg.configFile."alacritty" = {
|
|
source = ../config/alacritty;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|