Auto: cleanup-2026-06-14T15-26-03Z

This commit is contained in:
2026-06-14 17:26:24 +02:00
parent 2a0c85275f
commit 2d16f3893b
8 changed files with 39 additions and 33 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; # used for some packages nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; # used for some packages
# Only uncomment when needed. This uses a lot of space and compute ressources for sometimes not that much. If not used, make it follow unstable # Only uncomment when needed. This uses a lot of space and compute ressources for sometimes not that much. If not used, make it follow unstable
nixpkgs-master.follows = "nixpkgs-unstable"; nixpkgs-master.follows = "nixpkgs-unstable";
#nixpkgs-master.url = "github:nixos/nixpkgs/master"; # used with precaution as they are untested and not cached #nixpkgs-master.url = "github:nixos/nixpkgs/master"; # used with precaution as they are untested and not cached
+2 -2
View File
@@ -211,8 +211,8 @@
#"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center #"Ctrl+Alt, 1, exec, swaync-client -t" # pos 4 1 notification center
"Ctrl+Alt, 1, exec, qs ipc call notifications toggle" "Ctrl+Alt, 1, exec, qs ipc call notifications toggle"
*/ */
# pos 4 1 notification center. # pos 4 1 notification center.
"Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar" "Ctrl+Alt, 1, exec, caelestia shell drawers toggle sidebar"
"Ctrl+Alt, 1, exec, [[ -f ~/.cache/hypr-battery-saver ]] || swaync-client -t" "Ctrl+Alt, 1, exec, [[ -f ~/.cache/hypr-battery-saver ]] || swaync-client -t"
"Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd" "Ctrl+$mod, 4, exec, caelestia shell notifs toggleDnd"
"Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol "Ctrl+$mod, 3, exec, pavucontrol" # pos 1 2 audiocontrol
+1 -1
View File
@@ -3,5 +3,5 @@ _: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
elan elan
]; ];
}; };
} }
+2 -2
View File
@@ -11,7 +11,7 @@ _: {
"battery" "battery"
"clock" "clock"
]; ];
battery = { battery = {
format = "{capacity}% {icon}"; format = "{capacity}% {icon}";
states = { states = {
@@ -19,7 +19,7 @@ _: {
critical = 15; critical = 15;
}; };
}; };
clock = { clock = {
format = "{:%H:%M}"; format = "{:%H:%M}";
}; };
+2 -2
View File
@@ -11,7 +11,7 @@ _: {
caelestia-shell -n > /dev/null 2>&1 & disown caelestia-shell -n > /dev/null 2>&1 & disown
fi fi
''; '';
snrs = '' snrs = ''
git -C ~/nixos add -A && git -C ~/nixos add -A &&
time sudo nixos-rebuild switch --flake ~/nixos/#laptop && time sudo nixos-rebuild switch --flake ~/nixos/#laptop &&
@@ -50,7 +50,7 @@ _: {
command cat "$@" command cat "$@"
fi fi
} }
custom-eza() { # behaves differently if we just call it or if we pipe initContent custom-eza() { # behaves differently if we just call it or if we pipe initContent
if [[ -t 1 ]]; then if [[ -t 1 ]]; then
eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@" eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@"
+25 -23
View File
@@ -36,27 +36,29 @@
services.system76-scheduler.settings.cfsProfiles.enable = true; # Better scheduling for CPU cycles - thanks System76!!! services.system76-scheduler.settings.cfsProfiles.enable = true; # Better scheduling for CPU cycles - thanks System76!!!
services.thermald.enable = false; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs) services.thermald.enable = false; # Enable thermald, the temperature management daemon. (only necessary if on Intel CPUs)
services.power-profiles-daemon.enable = true; # ppd is recommended over tlp for framework 16 services.power-profiles-daemon.enable = true; # ppd is recommended over tlp for framework 16
/*services.tlp = { /*
enable = true; # Enable TLP (better than gnomes internal power manager) services.tlp = {
settings = { enable = true; # Enable TLP (better than gnomes internal power manager)
CPU_BOOST_ON_AC = 1; settings = {
CPU_BOOST_ON_BAT = 1; CPU_BOOST_ON_AC = 1;
CPU_HWP_DYN_BOOST_ON_AC = 1; CPU_BOOST_ON_BAT = 1;
CPU_HWP_DYN_BOOST_ON_BAT = 1; CPU_HWP_DYN_BOOST_ON_AC = 1;
CPU_SCALING_GOVERNOR_ON_AC = "balanced"; CPU_HWP_DYN_BOOST_ON_BAT = 1;
CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; CPU_SCALING_GOVERNOR_ON_AC = "balanced";
CPU_ENERGY_PERF_POLICY_ON_AC = "balanced"; CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave"; CPU_ENERGY_PERF_POLICY_ON_AC = "balanced";
PLATFORM_PROFILE_ON_AC = "balanced"; CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave";
PLATFORM_PROFILE_ON_BAT = "powersave"; PLATFORM_PROFILE_ON_AC = "balanced";
STOP_CHARGE_THRESH_BAT1 = 80; PLATFORM_PROFILE_ON_BAT = "powersave";
}; STOP_CHARGE_THRESH_BAT1 = 80;
<<<<<<< HEAD };
};*/ <<<<<<< HEAD
};
*/
environment.systemPackages = [ environment.systemPackages = [
self.packages.${pkgs.system}.custom-performance self.packages.${pkgs.system}.custom-performance
]; ];
}; };
perSystem = {pkgs, ...}: let perSystem = {pkgs, ...}: let
NotifySound = ../../assets/battery_notify.mp3; NotifySound = ../../assets/battery_notify.mp3;
in { in {
@@ -362,7 +364,7 @@
pkill -f caelestia || true pkill -f caelestia || true
pkill shell || true pkill shell || true
pkill -f custom-wallpaper || true pkill -f custom-wallpaper || true
# Start lightweight notifications # Start lightweight notifications
pkill swaync || true pkill swaync || true
swaync & disown swaync & disown
@@ -373,7 +375,7 @@
# Lower refresh rate (BIGGEST win) # Lower refresh rate (BIGGEST win)
hyprctl keyword monitor "eDP-1,2560x1600@60,0x0,1" hyprctl keyword monitor "eDP-1,2560x1600@60,0x0,1"
# Core performance toggles # Core performance toggles
hyprctl --batch "\ hyprctl --batch "\
keyword animations:enabled 0;\ keyword animations:enabled 0;\
@@ -421,12 +423,12 @@
if [[ -f "''${STATE}.brightness" ]]; then if [[ -f "''${STATE}.brightness" ]]; then
brightnessctl set "$(cat "''${STATE}.brightness")" 2>/dev/null || true brightnessctl set "$(cat "''${STATE}.brightness")" 2>/dev/null || true
fi fi
rm -f "$STATE" "''${STATE}.brightness" rm -f "$STATE" "''${STATE}.brightness"
notify-send "Battery Saver" "Disabled" notify-send "Battery Saver" "Disabled"
} }
if [[ -f "$STATE" ]]; then if [[ -f "$STATE" ]]; then
disable disable
else else
+1 -1
View File
@@ -1,5 +1,5 @@
{self, ...}: { {self, ...}: {
flake.nixosModules.performance-desktop = {pkgs,...}: { flake.nixosModules.performance-desktop = {pkgs, ...}: {
environment.systemPackages = [ environment.systemPackages = [
self.packages.${pkgs.system}.custom-performance self.packages.${pkgs.system}.custom-performance
]; ];
+5 -1
View File
@@ -1,4 +1,8 @@
{inputs, self, ...}: { {
inputs,
self,
...
}: {
flake.nixosModules.nixUtils-laptop = _: { flake.nixosModules.nixUtils-laptop = _: {
# nixpkgs-review crashed my laptop multiple times. We must reduce how much ressources it can take. # nixpkgs-review crashed my laptop multiple times. We must reduce how much ressources it can take.
# for reference, my laptop is a 12 core ryzen 7 # for reference, my laptop is a 12 core ryzen 7