mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
remove alacritty module
This commit is contained in:
parent
8b08077e40
commit
6bedbeb00c
2 changed files with 0 additions and 34 deletions
|
@ -5,7 +5,6 @@
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
{
|
{
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
alacritty = ./modules/alacritty.nix;
|
|
||||||
baseline = ./modules/baseline.nix;
|
baseline = ./modules/baseline.nix;
|
||||||
cli = ./modules/cli.nix;
|
cli = ./modules/cli.nix;
|
||||||
gnome = ./modules/gnome.nix;
|
gnome = ./modules/gnome.nix;
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.sconfig.alacritty;
|
|
||||||
|
|
||||||
alacritty_theme = pkgs.fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/eendroroy/alacritty-theme/0ea6ab87fed0d71dc9658dea95debc4124984607/themes/base16_default_dark.yaml";
|
|
||||||
sha256 = "16zhhdg5wrjvlidch1cy4qhcpi47zfyv34zxlknfvh1k6d0mahcs";
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.sconfig.alacritty = lib.mkEnableOption "Patch libinput scroll speed";
|
|
||||||
|
|
||||||
config = lib.mkIf cfg {
|
|
||||||
environment.systemPackages = [ pkgs.alacritty ];
|
|
||||||
|
|
||||||
programs.bash.interactiveShellInit = ''
|
|
||||||
function _set_title() {
|
|
||||||
printf "\033]0;%s@%s:%s\007" "''${USER}" "''${HOSTNAME%%.*}" "''${PWD/#$HOME/\~}"
|
|
||||||
}
|
|
||||||
[ -z "$VTE_VERSION" ] && PROMPT_COMMAND="_set_title; $PROMPT_COMMAND"
|
|
||||||
'';
|
|
||||||
|
|
||||||
environment.etc."xdg/alacritty.yml".text = ''
|
|
||||||
env:
|
|
||||||
TERM: xterm-256color
|
|
||||||
key_bindings:
|
|
||||||
- { key: N, mods: Control|Shift, action: SpawnNewInstance }
|
|
||||||
- { key: T, mods: Control|Shift, action: SpawnNewInstance }
|
|
||||||
${builtins.readFile alacritty_theme}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue