mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move alacritty config
This commit is contained in:
parent
9e2e33dee9
commit
8527b5e3ac
2 changed files with 16 additions and 23 deletions
|
@ -6,8 +6,6 @@
|
||||||
# (November 2021)
|
# (November 2021)
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.sconfig.alacritty;
|
|
||||||
|
|
||||||
configText = builtins.toJSON
|
configText = builtins.toJSON
|
||||||
{
|
{
|
||||||
env.TERM = "xterm-256color";
|
env.TERM = "xterm-256color";
|
||||||
|
@ -43,10 +41,6 @@ let
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.sconfig.alacritty.enable = lib.mkEnableOption "Enable Alacritty";
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
|
|
||||||
environment.etc."xdg/alacritty.yml".text = configText;
|
environment.etc."xdg/alacritty.yml".text = configText;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
@ -64,5 +58,4 @@ in
|
||||||
}
|
}
|
||||||
[ -z "$VTE_VERSION" ] && PROMPT_COMMAND="_set_title; $PROMPT_COMMAND"
|
[ -z "$VTE_VERSION" ] && PROMPT_COMMAND="_set_title; $PROMPT_COMMAND"
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
}
|
}
|
|
@ -6,6 +6,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./alacritty.nix
|
||||||
./chromium.nix
|
./chromium.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
];
|
];
|
||||||
|
@ -27,7 +28,6 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
sconfig = {
|
sconfig = {
|
||||||
alacritty.enable = true;
|
|
||||||
security-tools = true;
|
security-tools = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue