Compare commits
5 changed files with 27 additions and 58 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = false;
|
thermald.enable = false;
|
||||||
throttled.enable = true;
|
throttled.enable = true;
|
||||||
power-profiles-daemon.enable = false; # replacement for tlp and auto-cpufreq due to bugs
|
power-profiles-daemon.enable = true; # replacement for tlp and auto-cpufreq due to bugs
|
||||||
tlp = {
|
tlp = {
|
||||||
enable = false; # buggy and inconsistent with frequency scaling
|
enable = false; # buggy and inconsistent with frequency scaling
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -50,23 +50,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
auto-cpufreq = {
|
auto-cpufreq = {
|
||||||
enable = true; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
|
enable = false; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
|
||||||
settings = {
|
settings = {
|
||||||
charger = {
|
charger = {
|
||||||
governor = "performance";
|
governor = "performance";
|
||||||
energy_performance_preference = "performance";
|
energy_performance_preference = "performance";
|
||||||
turbo = "auto";
|
turbo = "auto";
|
||||||
platform_profile = "performance";
|
|
||||||
scaling_min_freq = 800000;
|
|
||||||
scaling_max_freq = 3600000;
|
|
||||||
};
|
};
|
||||||
battery = {
|
battery = {
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
energy_performance_preference = "power";
|
energy_performance_preference = "power";
|
||||||
platform_profile = "low-power";
|
|
||||||
turbo = "never";
|
turbo = "never";
|
||||||
scaling_min_freq = 400000;
|
|
||||||
scaling_max_freq = 1000000;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,6 @@
|
||||||
kernel.sysctl."vm.laptop_mode" = 5;
|
kernel.sysctl."vm.laptop_mode" = 5;
|
||||||
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
||||||
};
|
};
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth.enable = true;
|
||||||
enable = true;
|
|
||||||
powerOnBoot = false;
|
|
||||||
};
|
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,36 +24,25 @@
|
||||||
light = "Catppuccin Mocha (sapphire)";
|
light = "Catppuccin Mocha (sapphire)";
|
||||||
dark = "Catppuccin Mocha (sapphire)";
|
dark = "Catppuccin Mocha (sapphire)";
|
||||||
};
|
};
|
||||||
languages.CSS.language_servers = [
|
lsp.discord_presence.initialization_options = {
|
||||||
"tailwindcss-intellisense-css"
|
application_id = "1263505205522337886";
|
||||||
"!vscode-css-language-server"
|
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||||
"..."
|
state = "Working on {filename}";
|
||||||
];
|
details = "In {workspace}";
|
||||||
lsp = {
|
large_image = "{base_icons_url}/{language:lo}.png";
|
||||||
tailwindcss-language-server.settings = {
|
large_text = "{language:u}";
|
||||||
classFunctions = [ "cva" "cx" ];
|
small_image = "{base_icons_url}/zed.png";
|
||||||
experimental.classRegex = [ "[cls|className]\\s\\:\\=\\s\"([^\"]*)" ];
|
small_text = "Zed";
|
||||||
};
|
git_integration = true;
|
||||||
discord_presence.initialization_options = {
|
idle = {
|
||||||
application_id = "1263505205522337886";
|
timeout = 300;
|
||||||
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
action = "change_activity";
|
||||||
state = "Working on {filename}";
|
state = "Idling";
|
||||||
details = "In {workspace}";
|
details = "In Zed";
|
||||||
large_image = "{base_icons_url}/{language:lo}.png";
|
large_image = "{base_icons_url}/zed.png";
|
||||||
large_text = "{language:u}";
|
large_text = "Zed";
|
||||||
small_image = "{base_icons_url}/zed.png";
|
small_image = "{base_icons_url}/idle.png";
|
||||||
small_text = "Zed";
|
small_text = "Idle";
|
||||||
git_integration = true;
|
|
||||||
idle = {
|
|
||||||
timeout = 300;
|
|
||||||
action = "change_activity";
|
|
||||||
state = "Idling";
|
|
||||||
details = "In Zed";
|
|
||||||
large_image = "{base_icons_url}/zed.png";
|
|
||||||
large_text = "Zed";
|
|
||||||
small_image = "{base_icons_url}/idle.png";
|
|
||||||
small_text = "Idle";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
|
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
debug = {
|
debug = {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ lib, pkgs, ctp-opt, rice, ... }: {
|
{ lib, pkgs, ctp-opt, ... }: {
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
enable = true;
|
|
||||||
hyprlock.useDefaultConfig = false;
|
hyprlock.useDefaultConfig = false;
|
||||||
|
hyprland.accent = ctp-opt.primary;
|
||||||
flavor = ctp-opt.flavor;
|
flavor = ctp-opt.flavor;
|
||||||
accent = ctp-opt.accent;
|
accent = ctp-opt.accent;
|
||||||
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
dconf = {
|
dconf = {
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
package = pkgs.gnome-themes-extra;
|
package = pkgs.gnome-themes-extra;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
platformTheme.name = "kvantum";
|
platformTheme.name = "kvantum";
|
||||||
|
|
@ -38,16 +38,5 @@
|
||||||
accent = ctp-opt.accent;
|
accent = ctp-opt.accent;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
qt6ctSettings = {
|
|
||||||
Appearance = {
|
|
||||||
style = "kvantum";
|
|
||||||
icon_theme = "Papirus-Dark";
|
|
||||||
standar_dialogs = "xdgdesktopportal";
|
|
||||||
};
|
|
||||||
Fonts = {
|
|
||||||
fixed = "${rice.font},12";
|
|
||||||
general = "${rice.font},12";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue