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 = {
|
||||
thermald.enable = false;
|
||||
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 = {
|
||||
enable = false; # buggy and inconsistent with frequency scaling
|
||||
settings = {
|
||||
|
|
@ -50,17 +50,23 @@
|
|||
};
|
||||
};
|
||||
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 = {
|
||||
charger = {
|
||||
governor = "performance";
|
||||
energy_performance_preference = "performance";
|
||||
turbo = "auto";
|
||||
platform_profile = "performance";
|
||||
scaling_min_freq = 800000;
|
||||
scaling_max_freq = 3600000;
|
||||
};
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
energy_performance_preference = "power";
|
||||
platform_profile = "low-power";
|
||||
turbo = "never";
|
||||
scaling_min_freq = 400000;
|
||||
scaling_max_freq = 1000000;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@
|
|||
kernel.sysctl."vm.laptop_mode" = 5;
|
||||
initrd.availableKernelModules = [ "thinkpad_acpi" ];
|
||||
};
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
};
|
||||
services.hardware.bolt.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,25 +24,36 @@
|
|||
light = "Catppuccin Mocha (sapphire)";
|
||||
dark = "Catppuccin Mocha (sapphire)";
|
||||
};
|
||||
lsp.discord_presence.initialization_options = {
|
||||
application_id = "1263505205522337886";
|
||||
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||
state = "Working on {filename}";
|
||||
details = "In {workspace}";
|
||||
large_image = "{base_icons_url}/{language:lo}.png";
|
||||
large_text = "{language:u}";
|
||||
small_image = "{base_icons_url}/zed.png";
|
||||
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";
|
||||
languages.CSS.language_servers = [
|
||||
"tailwindcss-intellisense-css"
|
||||
"!vscode-css-language-server"
|
||||
"..."
|
||||
];
|
||||
lsp = {
|
||||
tailwindcss-language-server.settings = {
|
||||
classFunctions = [ "cva" "cx" ];
|
||||
experimental.classRegex = [ "[cls|className]\\s\\:\\=\\s\"([^\"]*)" ];
|
||||
};
|
||||
discord_presence.initialization_options = {
|
||||
application_id = "1263505205522337886";
|
||||
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
|
||||
state = "Working on {filename}";
|
||||
details = "In {workspace}";
|
||||
large_image = "{base_icons_url}/{language:lo}.png";
|
||||
large_text = "{language:u}";
|
||||
small_image = "{base_icons_url}/zed.png";
|
||||
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 = {
|
||||
enable = true;
|
||||
systemd.enable = false;
|
||||
package = pkgs.hyprland; # inputs.hl.packages."${pkgs.system}".hyprland;
|
||||
systemd.enable = false;
|
||||
xwayland.enable = true;
|
||||
settings = {
|
||||
debug = {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, pkgs, ctp-opt, ... }: {
|
||||
{ lib, pkgs, ctp-opt, rice, ... }: {
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
hyprlock.useDefaultConfig = false;
|
||||
hyprland.accent = ctp-opt.primary;
|
||||
|
||||
flavor = ctp-opt.flavor;
|
||||
accent = ctp-opt.accent;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
dconf = {
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
package = pkgs.gnome-themes-extra;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "kvantum";
|
||||
|
|
@ -38,5 +38,16 @@
|
|||
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