summaryrefslogtreecommitdiff
path: root/nixos/hosts/box
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-06-12 22:36:32 +0200
committerGitHub <noreply@github.com>2026-06-12 22:36:32 +0200
commit068d089333180c578c156721ae0f184fe8ca8d5d (patch)
tree631d9e377f78a76022332a85393b77f4077cff11 /nixos/hosts/box
parent24242b9570d61e1c659c4c6cfb0cd11c9c4c94ee (diff)
Refactor box.nix configuration and add btop settings
Diffstat (limited to 'nixos/hosts/box')
-rw-r--r--nixos/hosts/box/box.nix157
1 files changed, 138 insertions, 19 deletions
diff --git a/nixos/hosts/box/box.nix b/nixos/hosts/box/box.nix
index 26cfda8..3cf75f4 100644
--- a/nixos/hosts/box/box.nix
+++ b/nixos/hosts/box/box.nix
@@ -1,32 +1,68 @@
-{ pkgs, ... }: {
+{ config, pkgs, ... }:
+
+{
imports = [
- ../../mdls/hypr.nix
- ../../mdls/qksh.nix
+ ./mdls/hypr.nix
+ ./mdls/vim.nix
+ ./mdls/qksh.nix
];
+ home.username = "car";
+ home.homeDirectory = "/home/cat";
+ home.stateVersion = "26.05";
+
+ xdg.configFile."fish/config.fish".force = true;
xdg.configFile."kitty/kitty.conf".force = true;
+ xdg.configFile."btop/btop.conf".force = true;
- programs.fish.loginShellInit = ''
- if test -z "$DISPLAY" -a (tty) = "/dev/tty1"
- exec start-hyprland
- end
- '';
+ programs.fish = {
+ enable = true;
+ shellAbbrs = {
+ rebuild = "sudo nixos-rebuild switch --flake /etc/nixos/#$hostname";
+ update = "nix flake update --flake /etc/nixos/ && sudo nixos-rebuild switch --flake /etc/nixos/#$hostname";
+ };
+ functions = {
+ fish_greeting = { body = ""; };
+ fish_prompt = {
+ body = ''
+ echo -n (prompt_pwd)
+ echo -n " > "
+ '';
+ };
+ };
+ interactiveShellInit = ''
+ if status is-interactive
+ cat ~/.cache/wal/sequences
+ end
+ '';
+ loginShellInit = ''
+ if test -z "$DISPLAY" -a (tty) = "/dev/tty1"
+ exec start-hyprland
+ end
+ '';
+ };
programs.kitty = {
enable = true;
extraConfig = ''
include ~/.cache/wal/colors-kitty.conf
+
shell fish
shell_integration enabled
+
font_family JetBrainsMono Nerd Font
+ font_size 12
font_size 11
+
cursor_trail 3
cursor_trail_decay 0.1 0.4
cursor_shape beam
cursor_blink_interval 1
shell_integration no-cursor
+
confirm_os_window_close 0
allow_remote_control yes
+
background_opacity 1
background_blur 1
dynamic_background_opacity 1
@@ -36,17 +72,100 @@
'';
};
- home.pointerCursor = {
- gtk.enable = true;
- x11.enable = true;
- package = pkgs.kdePackages.breeze;
- name = "breeze_cursors";
- size = 16;
+ programs.btop = {
+ enable = true;
+ settings = {
+ color_theme = "TTY";
+ theme_background = true;
+ truecolor = true;
+ force_tty = false;
+ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty";
+ vim_keys = false;
+ rounded_corners = false;
+ terminal_sync = true;
+ update_ms = 2000;
+ background_update = true;
+ clock_format = "%X";
+ base_10_sizes = false;
+ base_10_bitrate = "Auto";
+ log_level = "WARNING";
+ save_config_on_exit = true;
+ shown_boxes = "cpu mem net proc";
+ graph_symbol = "braille";
+ graph_symbol_cpu = "default";
+ graph_symbol_gpu = "default";
+ graph_symbol_mem = "default";
+ graph_symbol_net = "default";
+ graph_symbol_proc = "default";
+ cpu_bottom = false;
+ cpu_graph_upper = "Auto";
+ cpu_graph_lower = "Auto";
+ cpu_invert_lower = true;
+ cpu_single_graph = false;
+ check_temp = true;
+ cpu_sensor = "Auto";
+ show_coretemp = true;
+ cpu_core_map = "";
+ temp_scale = "celsius";
+ show_cpu_freq = true;
+ freq_mode = "first";
+ show_cpu_watts = true;
+ show_uptime = true;
+ custom_cpu_name = "";
+ proc_left = false;
+ proc_sorting = "cpu lazy";
+ proc_reversed = false;
+ proc_tree = false;
+ proc_colors = true;
+ proc_gradient = true;
+ proc_per_core = false;
+ proc_mem_bytes = true;
+ proc_cpu_graphs = true;
+ proc_info_smaps = false;
+ proc_filter_kernel = false;
+ proc_aggregate = false;
+ keep_dead_proc_usage = false;
+ mem_graphs = true;
+ mem_below_net = false;
+ show_swap = true;
+ swap_disk = true;
+ zfs_arc_cached = true;
+ show_disks = true;
+ disks_filter = "";
+ only_physical = true;
+ use_fstab = true;
+ disk_free_priv = false;
+ show_io_stat = true;
+ io_mode = false;
+ io_graph_combined = false;
+ io_graph_speeds = "";
+ zfs_hide_datasets = false;
+ net_iface = "";
+ net_auto = true;
+ net_sync = true;
+ net_download = 100;
+ net_upload = 100;
+ show_gpu_info = "Auto";
+ shown_gpus = "nvidia";
+ gpu_mirror_graph = true;
+ nvml_measure_pcie_speeds = true;
+ rsmi_measure_pcie_speeds = true;
+ };
};
- home.sessionVariables = {
- XCURSOR_THEME = "breeze_cursors";
- XCURSOR_SIZE = "16";
- QT_CURSOR_SIZE = "16";
- };
+home.pointerCursor = {
+ gtk.enable = true;
+ x11.enable = true;
+ package = pkgs.kdePackages.breeze;
+ name = "breeze_cursors";
+ size = 16;
+};
+
+home.sessionVariables = {
+ XCURSOR_THEME = "breeze_cursors";
+ XCURSOR_SIZE = "16";
+ QT_CURSOR_SIZE = "16";
+};
+
+ programs.home-manager.enable = true;
}