Compare commits

..

No commits in common. "f2436bc0a0d31d3608bffb8bad5a3d710bc6cda5" and "86a1b5798c2304bda7ce53fbf16b35979554267f" have entirely different histories.

5 changed files with 30 additions and 56 deletions

View file

@ -122,8 +122,6 @@ in {
xdg-utils xdg-utils
vanilla-dmz vanilla-dmz
(discord.override {withVencord = true;}) (discord.override {withVencord = true;})
spotify
zed-editor-fhs
bitwarden-desktop bitwarden-desktop
bitwarden-cli bitwarden-cli

View file

@ -53,9 +53,6 @@ in {
# jinx from emacsPackages # jinx from emacsPackages
emacsPackages.jinx emacsPackages.jinx
# LSP support
emacs-lsp-booster
# language servers # language servers
pkgs.unstable.rust-analyzer pkgs.unstable.rust-analyzer
nixd]; nixd];
@ -65,10 +62,10 @@ in {
# source = emacs-config; # source = emacs-config;
# }; # };
# }; # };
# services.emacs = { services.emacs = {
# enable = true; enable = true;
# package = emacs; package = emacs;
# }; };
programs.emacs = { programs.emacs = {
enable = true; enable = true;
package = emacs; package = emacs;

View file

@ -6,7 +6,6 @@
]; ];
has_battery = true; has_battery = true;
useThermald = true;
desktop_scale = 1.3; desktop_scale = 1.3;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];

View file

@ -35,23 +35,5 @@
default = {}; default = {};
description = "Additional config for sway outputs"; description = "Additional config for sway outputs";
}; };
cpufreqConfig = lib.mkOption {
type = lib.types.attrsOf lib.types.anything;
default = {};
description = "Additional config for auto-cpufreq";
};
useThermald = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Use thermald for thermal management";
};
tlpConfig = lib.mkOption {
type = lib.types.attrsOf lib.types.anything;
default = {};
description = "Additional config for TLP";
};
}; };
} }

View file

@ -1,4 +1,4 @@
{inputs, lib, pkgs, config, ...}: { {inputs, pkgs, config, ...}: {
imports = [ imports = [
../options.nix ../options.nix
]; ];
@ -151,35 +151,33 @@
dnsovertls = "true"; dnsovertls = "true";
}; };
thermald.enable = config.useThermald; # thermald.enable = true;
# tlp = {
# enable = true;
# settings = {
# START_CHARGE_THRESH_BAT0 = 50;
# STOP_CHARGE_THRESH_BAT0 = 85;
# };
# };
# auto-cpufreq = {
# enable = true;
# settings = {
# battery = {
# governor = "powersave"; # Set the CPU governor to powersave.
# energy_performance_preference = "powersave";
# turbo = "never";
tlp = lib.mkIf (config.has_battery) { # # enable_thresholds = true;
enable = true; # # start_threshold = 50;
settings = { # # stop_threshold = 90;
START_CHARGE_THRESH_BAT0 = 50; # };
STOP_CHARGE_THRESH_BAT0 = 85;
};
} // config.tlpConfig or {};
auto-cpufreq = lib.mkIf (config.has_battery) { # charger = {
enable = true; # governor = "performance"; # Set the CPU governor to performance when charging.
settings = { # turbo = "auto";
battery = { # };
governor = "powersave"; # Set the CPU governor to powersave. # };
energy_performance_preference = "powersave"; # };
turbo = "never";
# enable_thresholds = true;
# start_threshold = 50;
# stop_threshold = 90;
};
charger = {
governor = "performance"; # Set the CPU governor to performance when charging.
turbo = "auto";
};
};
} // config.cpufreqConfig or {};
pipewire = { pipewire = {
enable = true; enable = true;