configs: remove alacritty and fix smug eval issue

Both smug and alacritty configs were causing an eval issue with `nix flake check
--no-build`.

To fix we basically just remove alacritty and the etc entry for smug
stuff (which isn't used anyway).
This commit is contained in:
Aaron Bieber 2024-09-09 08:19:36 -06:00
parent 3e4e06c67b
commit 096502a3d3
No known key found for this signature in database
3 changed files with 12 additions and 40 deletions

View File

@ -1,30 +0,0 @@
{ pkgs, ... }:
let
settings = {
font = {
normal = {
family = "Go Mono";
};
size = 6;
};
colors = {
primary = {
background = "#ffffea";
foreground = "#000000";
};
};
};
settingsFormat = pkgs.formats.toml { };
settingsFile = settingsFormat.generate "alacritty.toml" settings;
in
{
config = {
environment = {
etc = {
"xdg/alacritty/alacritty.toml".text = builtins.readFile settingsFile;
};
};
fonts = { packages = with pkgs; [ go-font ]; };
};
}

View File

@ -1,6 +1,5 @@
{ ... }: { { ... }: {
imports = [ imports = [
./alacritty.nix
./ca.nix ./ca.nix
./ci.nix ./ci.nix
./colemak.nix ./colemak.nix

View File

@ -4,14 +4,17 @@ let
tmuxFormat = pkgs.formats.yaml { }; tmuxFormat = pkgs.formats.yaml { };
mkSmugEntry = name: cfg: mkSmugEntry = name: cfg:
{ {
environment = { environment =
let
yamlFile = tmuxFormat.generate "${name}.yml" cfg;
startScript = pkgs.writeScriptBin name ''
${pkgs.smug}/bin/smug -f ${yamlFile} start
'';
in
{
systemPackages = [ systemPackages = [
(pkgs.writeScriptBin name '' startScript
${pkgs.smug}/bin/smug -f /etc/smug/${name}.yml start
'')
]; ];
etc."smug/${name}.yml".text = builtins.readFile
(tmuxFormat.generate "${name}.yml" cfg);
}; };
}; };
in in