htop and stuff
This commit is contained in:
parent
729327c671
commit
5ed4178245
8 changed files with 34 additions and 13 deletions
|
@ -19,6 +19,7 @@
|
||||||
zellij
|
zellij
|
||||||
broot
|
broot
|
||||||
nnn
|
nnn
|
||||||
|
htop
|
||||||
cargo
|
cargo
|
||||||
senpai
|
senpai
|
||||||
tmux
|
tmux
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
ewwbar = import ./ewwbar.nix;
|
ewwbar = import ./ewwbar.nix;
|
||||||
sway-laptop = import ./sway-laptop.nix;
|
sway-laptop = import ./sway-laptop.nix;
|
||||||
tmux = import ./tmux.nix;
|
tmux = import ./tmux.nix;
|
||||||
|
htop = import ./htop.nix;
|
||||||
senpai = import ./senpai.nix;
|
senpai = import ./senpai.nix;
|
||||||
|
|
||||||
dragon = import ./dragon.nix;
|
dragon = import ./dragon.nix;
|
||||||
|
|
|
@ -4,7 +4,7 @@ in {
|
||||||
imports = with outputs.homeManagerModules; [
|
imports = with outputs.homeManagerModules; [
|
||||||
sway
|
sway
|
||||||
sway-laptop
|
sway-laptop
|
||||||
hyprland
|
# hyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
14
modules/home-manager/htop.nix
Normal file
14
modules/home-manager/htop.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
programs.htop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
hide_kernel_threads = 1;
|
||||||
|
hide_userland_threads = 1;
|
||||||
|
show_program_path = 0;
|
||||||
|
header_margin = 0;
|
||||||
|
show_cpu_frequency = 1;
|
||||||
|
highlight_base_name = 1;
|
||||||
|
tree_view = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -77,6 +77,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: stuff is opening on workspace 10 (0?)
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
exec --no-startup-id {
|
exec --no-startup-id {
|
||||||
swaymsg "workspace 1"
|
swaymsg "workspace 1"
|
||||||
|
@ -155,7 +156,7 @@
|
||||||
"before-sleep 'swaylock'"
|
"before-sleep 'swaylock'"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
{command = "firefox";}
|
# {command = "firefox";}
|
||||||
# {command = "wezterm";}
|
# {command = "wezterm";}
|
||||||
{command = "kitty --single-instance";}
|
{command = "kitty --single-instance";}
|
||||||
];
|
];
|
||||||
|
|
|
@ -43,7 +43,6 @@
|
||||||
gnumake
|
gnumake
|
||||||
gron
|
gron
|
||||||
hexyl
|
hexyl
|
||||||
htop
|
|
||||||
iputils
|
iputils
|
||||||
jq
|
jq
|
||||||
killall
|
killall
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./hyprland.nix
|
# ./hyprland.nix
|
||||||
# ./plasma.nix
|
# ./plasma.nix
|
||||||
# ./gnome.nix
|
# ./gnome.nix
|
||||||
./user-installed-applications.nix
|
./user-installed-applications.nix
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
IdleActionSec=10m
|
IdleActionSec=10m
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
systemd.sleep.extraConfig = "HibernateDelaySec=30m";
|
systemd.sleep.extraConfig = "HibernateDelaySec=90m";
|
||||||
|
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
services.fwupd.extraRemotes = ["lvfs-testing"];
|
services.fwupd.extraRemotes = ["lvfs-testing"];
|
||||||
|
@ -59,22 +59,24 @@
|
||||||
hardware.wirelessRegulatoryDatabase = true;
|
hardware.wirelessRegulatoryDatabase = true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest; # seeing if using the stable kernel makes wow work
|
||||||
|
|
||||||
loader = {
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
};
|
};
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
# sudo filefrag -v /swap/swapfile | awk '$1=="0:" {print substr($4, 1, length($4)-2)}'
|
# sudo filefrag -v /swap/swapfile | awk '$1=="0:" {print substr($4, 1, length($4)-2)}'
|
||||||
# the above won't work for btrfs, instead you need
|
# the above won't work for btrfs, instead you need
|
||||||
# btrfs inspect-internal map-swapfile -r /swap/swapfile
|
# btrfs inspect-internal map-swapfile -r /swap/swapfile
|
||||||
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
|
# https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file
|
||||||
# many of these come from https://wiki.archlinux.org/title/Framework_Laptop_13#Suspend
|
# many of these come from https://wiki.archlinux.org/title/Framework_Laptop_13#Suspend
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
# "amdgpu.sg_display=0"
|
"amdgpu.sg_display=0"
|
||||||
"acpi_osi=\"!Windows 2020\""
|
"acpi_osi=\"!Windows 2020\""
|
||||||
"resume_offset=39331072"
|
"resume_offset=39331072"
|
||||||
# "nvme.noacpi=1" # maybe causing crashes upon waking?
|
# "nvme.noacpi=1" # maybe causing crashes upon waking?
|
||||||
# "rtc_cmos.use_acpi_alarm=1" # maybe causing excessive battery drain while sleeping -- perhaps due to waking?
|
"rtc_cmos.use_acpi_alarm=1"
|
||||||
];
|
];
|
||||||
initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"];
|
initrd.availableKernelModules = ["xhci_pci" "nvme" "thunderbolt"];
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
|
@ -82,8 +84,11 @@
|
||||||
options cfg80211 ieee80211_regdom="US"
|
options cfg80211 ieee80211_regdom="US"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth = {
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.fprintd = {
|
services.fprintd = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
@ -91,13 +96,13 @@
|
||||||
# tod.driver = pkgs.libfprint-2-tod1-goodix;
|
# tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||||
};
|
};
|
||||||
services.power-profiles-daemon = {
|
services.power-profiles-daemon = {
|
||||||
enable = true;
|
enable = false;
|
||||||
};
|
};
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = false;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "ondemand";
|
||||||
CPU_MIN_PERF_ON_BAT = 0;
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
CPU_MAX_PERF_ON_BAT = 60;
|
CPU_MAX_PERF_ON_BAT = 60;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue