Dropped dotfiles input

This commit is contained in:
William 2023-08-18 17:09:05 -03:00
parent e74e0d0e21
commit 116e5acafe
6 changed files with 219 additions and 36 deletions

View file

@ -1,4 +1,4 @@
{ inputs, config, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
{
home = {
@ -10,12 +10,6 @@
package = pkgs.breeze-icons;
};
file = {
".config/wezterm/wezterm.lua".source =
"${inputs.dotfiles}/.config/wezterm/wezterm.lua";
".config/MangoHud/MangoHud.conf".source =
"${inputs.dotfiles}/.config/MangoHud/MangoHud.conf";
".config/solvespace/settings.json".source =
"${inputs.dotfiles}/.config/solvespace/settings.json";
".config/lite-xl/fonts/icon-nerd-font.ttf".source =
config.lib.file.mkOutOfStoreSymlink
"/var/run/current-system/sw/share/X11/fonts/HackNerdFontMono-Regular.ttf";

View file

@ -1,4 +1,4 @@
{ inputs, config, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
{
fonts.fontconfig.enable = true;
@ -20,11 +20,56 @@
};
programs = {
password-store.package = pkgs.pass-wayland;
mangohud = {
enable = true;
enableSessionWide = true;
settings = {
control = "mangohud";
legacy_layout = 0;
text_color = "ffffff";
ram_color = "ffffff";
vram_color = "ffffff";
frametime_color = "ffffff";
media_player_color = "ffffff";
io_color = "ffffff";
engine_color = "ffffff";
background_alpha = 0;
offset_y = 4;
offset_x = 4;
position = "top-left";
toggle_hud = "Shift_R+F12";
horizontal = true;
time = true;
time_format = "%H:%M";
battery_icon = true;
gamepad_battery_icon = true;
gpu_stats = true;
gpu_temp = true;
gpu_load_change = true;
gpu_load_value = "50,90";
gpu_text = "GPU";
gpu_color = "ffffff";
gpu_load_color = "FFFFFF,FFAA7F,CC0000";
cpu_stats = true;
cpu_temp = true;
cpu_load_change = true;
core_load_change = true;
cpu_load_value = "50,90";
cpu_text = "CPU";
cpu_color = "ffffff";
cpu_load_color = "FFFFFF,FFAA7F,CC0000";
vram = true;
ram = true;
fps = true;
frame_timing = true;
table_columns = 20;
horizontal_stretch = 0;
};
};
obs-studio = {
enable = true;
plugins = [
@ -33,6 +78,7 @@
pkgs.obs-studio-plugins.obs-pipewire-audio-capture
];
};
fish = {
functions = {
rebuild =
@ -45,5 +91,31 @@
"rm ~/.gtkrc-2.0; nix run '/home/user/Projects/personal/nix-config#homeConfigurations.desktop.activationPackage'";
};
};
wezterm = {
enable = true;
extraConfig = ''
function scheme_for_appearance(appearance)
if appearance:find "Dark" then
return "Catppuccin Mocha"
else
return "Catppuccin Macchiato"
end
end
return {
font_size = 11,
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
hide_tab_bar_if_only_one_tab = true,
font = wezterm.font_with_fallback ({
"Hack Nerd Font",
"Noto Color Emoji",
}),
initial_cols = 108,
initial_rows = 32,
enable_tab_bar = false,
enable_scroll_bar = true,
}
'';
};
};
}