Compare commits
3 commits
9340a365a7
...
d4c0043a05
| Author | SHA1 | Date | |
|---|---|---|---|
| d4c0043a05 | |||
| 9cd171ba1a | |||
| 7b899e71f6 |
5 changed files with 58 additions and 27 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = false;
|
thermald.enable = false;
|
||||||
throttled.enable = true;
|
throttled.enable = true;
|
||||||
power-profiles-daemon.enable = true; # replacement for tlp and auto-cpufreq due to bugs
|
power-profiles-daemon.enable = false; # 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,17 +50,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
auto-cpufreq = {
|
auto-cpufreq = {
|
||||||
enable = false; # wait for fix: https://github.com/AdnanHodzic/auto-cpufreq/issues/906
|
enable = true; # 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,6 +15,9 @@
|
||||||
kernel.sysctl."vm.laptop_mode" = 5;
|
kernel.sysctl."vm.laptop_mode" = 5;
|
||||||
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
||||||
};
|
};
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
services.hardware.bolt.enable = true;
|
services.hardware.bolt.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,25 +24,36 @@
|
||||||
light = "Catppuccin Mocha (sapphire)";
|
light = "Catppuccin Mocha (sapphire)";
|
||||||
dark = "Catppuccin Mocha (sapphire)";
|
dark = "Catppuccin Mocha (sapphire)";
|
||||||
};
|
};
|
||||||
lsp.discord_presence.initialization_options = {
|
languages.CSS.language_servers = [
|
||||||
application_id = "1263505205522337886";
|
"tailwindcss-intellisense-css"
|
||||||
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
"!vscode-css-language-server"
|
||||||
state = "Working on {filename}";
|
"..."
|
||||||
details = "In {workspace}";
|
];
|
||||||
large_image = "{base_icons_url}/{language:lo}.png";
|
lsp = {
|
||||||
large_text = "{language:u}";
|
tailwindcss-language-server.settings = {
|
||||||
small_image = "{base_icons_url}/zed.png";
|
classFunctions = [ "cva" "cx" ];
|
||||||
small_text = "Zed";
|
experimental.classRegex = [ "[cls|className]\\s\\:\\=\\s\"([^\"]*)" ];
|
||||||
git_integration = true;
|
};
|
||||||
idle = {
|
discord_presence.initialization_options = {
|
||||||
timeout = 300;
|
application_id = "1263505205522337886";
|
||||||
action = "change_activity";
|
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||||
state = "Idling";
|
state = "Working on {filename}";
|
||||||
details = "In Zed";
|
details = "In {workspace}";
|
||||||
large_image = "{base_icons_url}/zed.png";
|
large_image = "{base_icons_url}/{language:lo}.png";
|
||||||
large_text = "Zed";
|
large_text = "{language:u}";
|
||||||
small_image = "{base_icons_url}/idle.png";
|
small_image = "{base_icons_url}/zed.png";
|
||||||
small_text = "Idle";
|
small_text = "Zed";
|
||||||
|
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;
|
||||||
systemd.enable = false;
|
|
||||||
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
||||||
|
systemd.enable = false;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
debug = {
|
debug = {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ lib, pkgs, ctp-opt, ... }: {
|
{ lib, pkgs, ctp-opt, rice, ... }: {
|
||||||
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,5 +38,16 @@
|
||||||
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…
Add table
Add a link
Reference in a new issue