make alacritty option

This commit is contained in:
Sean Buckley 2021-09-07 20:32:11 -04:00
parent 78bcffb691
commit 041fea8d3e
3 changed files with 11 additions and 2 deletions

View file

@ -1,6 +1,14 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.alacritty;
in
{
config = {
options.sconfig.alacritty.enable = lib.mkEnableOption "Enable Alacritty";
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.alacritty ];
programs.bash.interactiveShellInit = ''
function _set_title() {
printf "\033]0;%s@%s:%s\007" "''${USER}" "''${HOSTNAME%%.*}" "''${PWD/#$HOME/\~}"

View file

@ -9,6 +9,8 @@ in
programs.ssh.startAgent = true;
programs.ssh.agentPKCS11Whitelist = pkcslib;
sconfig.alacritty.enable = true;
nixpkgs.overlays = [
(self: super: {
gnome = super.gnome // {

View file

@ -68,7 +68,6 @@ in
environment.systemPackages = with pkgs; [
unstable.i3status-rust # 21.11 version supports zfs ARC
alacritty
brightnessctl
numix-icon-theme
yaru-theme