bunch of sliming down
This commit is contained in:
parent
aacf05e59d
commit
8b2a1b1f4f
21 changed files with 992 additions and 810 deletions
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ with lib;
|
|||
killall
|
||||
hdparm
|
||||
speedtest-cli
|
||||
ffmpeg-full
|
||||
appimage-run
|
||||
];
|
||||
|
||||
environment.shellAliases = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue