move alacritty to separate home module
This commit is contained in:
parent
30948764c6
commit
900d07ae77
@ -44,6 +44,7 @@
|
|||||||
./home-manager/modules/shell/direnv.nix
|
./home-manager/modules/shell/direnv.nix
|
||||||
./home-manager/modules/topgrade.nix
|
./home-manager/modules/topgrade.nix
|
||||||
./home-manager/modules/neovim.nix
|
./home-manager/modules/neovim.nix
|
||||||
|
./home-manager/modules/alacritty.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
};
|
};
|
||||||
topgrade.enable = true;
|
topgrade.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
|
alacritty.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@ -51,12 +52,6 @@
|
|||||||
# org.gradle.console=verbose
|
# org.gradle.console=verbose
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
# org.gradle.daemon.idletimeout=3600000
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
".config/alacritty/theme".source = "${inputs.alacritty-theme}";
|
|
||||||
".config/alacritty" = {
|
|
||||||
source = ../alacritty;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home Manager can also manage your environment variables through
|
# Home Manager can also manage your environment variables through
|
||||||
|
21
home-manager/modules/alacritty.nix
Normal file
21
home-manager/modules/alacritty.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user