bunch of sliming down

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-18 18:01:46 -05:00
parent aacf05e59d
commit 8b2a1b1f4f
21 changed files with 992 additions and 810 deletions

View file

@ -1,5 +1,7 @@
{
pkgs,
lib,
config,
...
}:
let
@ -14,9 +16,27 @@ let
pkgs.nerd-fonts.jetbrains-mono
else
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; });
ccfg = import ../config.nix;
cfg_path = [
ccfg.custom_config_key
"general"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
config = {
options =
{ }
// lib.attrsets.setAttrByPath cfg_path {
jetbrainsMonoFont = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable jetbrains mono font";
};
};
config = lib.mkIf cfg.jetbrainsMonoFont {
fonts.packages = [ jetbrainsMonoFont ];
};
}

View file

@ -24,8 +24,6 @@ with lib;
killall
hdparm
speedtest-cli
ffmpeg-full
appimage-run
];
environment.shellAliases = {

View file

@ -1,11 +1,28 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
ccfg = import ../config.nix;
cfg_path = [
ccfg.custom_config_key
"general"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
config = {
options =
{ }
// lib.attrsets.setAttrByPath cfg_path {
ttyCapsEscape = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable caps for escape key";
};
};
config = lib.mkIf cfg.ttyCapsEscape {
services.xserver.xkb.options = "caps:escape";
console = {
earlySetup = true;