usability improvements
This commit is contained in:
@@ -26,17 +26,6 @@
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
# powerOnBoot = true;
|
||||
# settings = {
|
||||
# General = {
|
||||
# Name = "Nixtre";
|
||||
# ControllerMode = "dual";
|
||||
# FastConnectable = "true";
|
||||
# Experimental = "true";
|
||||
# };
|
||||
# Policy = {
|
||||
# AutoEnable = "true";
|
||||
# };
|
||||
# };
|
||||
powerOnBoot = false;
|
||||
};
|
||||
}
|
||||
|
@@ -20,9 +20,9 @@
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# processor chooses frequencies itself
|
||||
CPU_DRIVER_OPMODE_ON_AC = "active";
|
||||
CPU_DRIVER_OPMODE_ON_BAT = "active";
|
||||
# processor chooses frequencies itself but respects the limits set by the user
|
||||
CPU_DRIVER_OPMODE_ON_AC = "guided";
|
||||
CPU_DRIVER_OPMODE_ON_BAT = "guided";
|
||||
|
||||
# governor dictates global behavior of the CPU
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
@@ -32,78 +32,29 @@
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
# CPU_MIN_PERF_ON_AC = 0;
|
||||
# CPU_MAX_PERF_ON_AC = 100;
|
||||
# CPU_MIN_PERF_ON_BAT = 0;
|
||||
# CPU_MAX_PERF_ON_BAT = 50;
|
||||
|
||||
# clock speeds reported by `sudo tlp-stat`
|
||||
# 623377 [kHz] and 5090910 [kHz]
|
||||
# CPU_SCALING_MIN_FREQ_ON_AC = 623377;
|
||||
# CPU_SCALING_MAX_FREQ_ON_AC = 5090910;
|
||||
# CPU_SCALING_MIN_FREQ_ON_BAT = 0;
|
||||
# # reduce max frequency on battery to save power
|
||||
# CPU_SCALING_MAX_FREQ_ON_BAT = 3000000;
|
||||
|
||||
# Allow the CPU to boost
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 1;
|
||||
|
||||
|
||||
RADEON_DPM_PERF_LEVEL_ON_AC = "high";
|
||||
WIFI_PWR_ON_BAT = "off";
|
||||
|
||||
# enable battery charge thresholds on the default battery
|
||||
STOP_CHARGE_THRESH_BAT0 = 1;
|
||||
|
||||
|
||||
# STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
|
||||
# CPU_BOOST_ON_AC = 1;
|
||||
# CPU_BOOST_ON_BAT = 0;
|
||||
# CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||
# CPU_HWP_DYN_BOOST_ON_BAT = 0;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# services.watt = {
|
||||
# enable = true;
|
||||
# settings = {
|
||||
# charger = {
|
||||
# governor = "performance";
|
||||
# turbo = "auto";
|
||||
# epp = "performance";
|
||||
# epb = "balance_performance";
|
||||
# platform_profile = "performance";
|
||||
|
||||
# enable_auto_turbo = true;
|
||||
# # Custom thresholds for auto turbo management
|
||||
# turbo_auto_settings = {
|
||||
# load_threshold_high = 70.0;
|
||||
# load_threshold_low = 30.0;
|
||||
# temp_threshold_high = 75.0;
|
||||
# initial_turbo_state = false; # whether turbo should be initially enabled (false = disabled)
|
||||
# };
|
||||
# };
|
||||
|
||||
# battery = {
|
||||
# governor = "powersave";
|
||||
# turbo = "auto";
|
||||
# epp = "power";
|
||||
# epb = "balance_power";
|
||||
# platform_profile = "low-power";
|
||||
|
||||
# enable_auto_turbo = true;
|
||||
# # Custom thresholds for auto turbo management
|
||||
# turbo_auto_settings = {
|
||||
# load_threshold_high = 80.0;
|
||||
# load_threshold_low = 40.0;
|
||||
# temp_threshold_high = 65.0;
|
||||
# initial_turbo_state = false; # whether turbo should be initially enabled (false = disabled)
|
||||
# };
|
||||
|
||||
# };
|
||||
|
||||
# daemon = {
|
||||
# poll_interval_sec = 10;
|
||||
# adaptive_interval = true;
|
||||
# min_poll_interval_sec = 1;
|
||||
# max_poll_interval_sec = 30;
|
||||
# throttle_on_battery = true;
|
||||
# stats_file_path = "/var/run/watt-stats";
|
||||
# };
|
||||
# # battery_charge_thresholds = [50 90];
|
||||
# };
|
||||
|
||||
|
||||
# # logind.lidSwitchExternalPower = "ignore"; # prevent lid switch from triggering a suspend
|
||||
# };
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
AllowSuspend=yes
|
||||
AllowHibernation=yes
|
||||
|
@@ -5,7 +5,29 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
stylix.enable = true;
|
||||
stylix.image = ./../../wallpapers/magicpattern-87PP9Zd7MNo-unsplash.jpg;
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
polarity = "dark";
|
||||
homeManagerIntegration.followSystem = false;
|
||||
base16Scheme = {
|
||||
# scheme = "onedark";
|
||||
# author = "https://github.com/one-dark";
|
||||
base00 = "#282c34";
|
||||
base01 = "#353b45";
|
||||
base02 = "#3e4451";
|
||||
base03 = "#545862";
|
||||
base04 = "#565c64";
|
||||
base05 = "#abb2bf";
|
||||
base06 = "#b6bdca";
|
||||
base07 = "#c8ccd4";
|
||||
base08 = "#e06c75";
|
||||
base09 = "#d19a66";
|
||||
base0A = "#e6c07b";
|
||||
base0B = "#98c379";
|
||||
base0C = "#56b6c2";
|
||||
base0D = "#61afef";
|
||||
base0E = "#c678dd";
|
||||
base0F = "#be5046";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@@ -1,17 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot.loader.grub.enable = true;
|
||||
|
||||
boot.loader.grub.efiSupport = true;
|
||||
# location at install time. Since the drive is a USB drive this is expcected to change on each device
|
||||
boot.loader.grub.device = "/dev/sdb";
|
||||
boot.loader.grub.efiInstallAsRemovable = true;
|
||||
boot.loader.systemd-boot.enable = false;
|
||||
|
||||
boot.loader.efi.canTouchEfiVariables = false;
|
||||
boot.tmp.useTmpfs = true;
|
||||
}
|
@@ -20,6 +20,7 @@ in
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"input"
|
||||
# other groups are added as needed, eg. networkmanager
|
||||
];
|
||||
};
|
||||
|
Reference in New Issue
Block a user