Configuration for waybar + sorting configs
This commit is contained in:
1 parent
d026be1709
commit
2995cd64db
6 files changed
+86
-75
No files matched your search
@@ -93,7 +93,8 @@
|
||||
"modules": [
|
||||
"battery",
|
||||
"backlight",
|
||||
"custom/quit"
|
||||
"custom/logout",
|
||||
"custom/suspend"
|
||||
]
|
||||
},
|
||||
"battery": {
|
||||
@@ -105,11 +106,16 @@
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"design-capacity": true
|
||||
},
|
||||
"custom/quit": {
|
||||
"format": "",
|
||||
"custom/logout": {
|
||||
"format": "Logout",
|
||||
"tooltip": false,
|
||||
"on-click": "hyprctl dispatch exit"
|
||||
},
|
||||
"custom/suspend": {
|
||||
"format": "Suspend",
|
||||
"tooltip": false,
|
||||
"on-click": "systemctl suspend"
|
||||
},
|
||||
"group/hardware": {
|
||||
"orientation": "inherit",
|
||||
"drawer": {
|
||||
|
||||
@@ -5,6 +5,7 @@ let
|
||||
fullName = "Ari Sosnovsky";
|
||||
email = "ariel@sosnovsky.ca";
|
||||
};
|
||||
dataDir = "/mnt/Data";
|
||||
in
|
||||
{
|
||||
imports =
|
||||
@@ -24,7 +25,7 @@ in
|
||||
];
|
||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||
services.fwupd.enable = true;
|
||||
fileSystems."/mnt/Data" = {
|
||||
fileSystems."${dataDir}" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
@@ -32,4 +33,7 @@ in
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
# home-manager.users.${user.name}.zsh.extraEnv = ''
|
||||
# export KUBECONFIG=${dataDir}/local/kube/config.yml
|
||||
# '';
|
||||
}
|
||||
@@ -2,9 +2,10 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
gitconfigs =
|
||||
(builtins.filterSource (path: type: type != "directory") ../../gitconfigs);
|
||||
(builtins.filterSource (path: type: type != "directory") ../../configs/gitconfigs);
|
||||
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
|
||||
in {
|
||||
in
|
||||
{
|
||||
home-manager.users.root = {
|
||||
home.stateVersion = homeMangerVersion;
|
||||
programs.git = {
|
||||
@@ -58,9 +59,6 @@ in {
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
envExtra = ''
|
||||
export KUBECONFIG=/run/media/ari/Data/local/kube/config.yml
|
||||
'';
|
||||
};
|
||||
zsh.oh-my-zsh = {
|
||||
enable = true;
|
||||
|
||||
+1
-1
@@ -55,7 +55,6 @@
|
||||
# Fonts
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
# (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
font-awesome
|
||||
@@ -65,6 +64,7 @@
|
||||
noto-fonts
|
||||
noto-fonts-emoji
|
||||
proggyfonts
|
||||
flatpak
|
||||
];
|
||||
fontDir.enable = true;
|
||||
fontconfig = {
|
||||
|
||||
+66
-6
@@ -3,11 +3,71 @@
|
||||
{
|
||||
# Firmware Updater
|
||||
services.fwupd.enable = true;
|
||||
services.fprintd = if enableFingerPrint then {
|
||||
enable = true;
|
||||
# tod.enable = true;
|
||||
# tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||
} else {
|
||||
services.fprintd =
|
||||
if enableFingerPrint then {
|
||||
enable = true;
|
||||
# tod.enable = true;
|
||||
# tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||
} else { };
|
||||
# Enable all license firmware
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
# enables support for Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
# Advance Power Management
|
||||
powerManagement.powertop.enable = true;
|
||||
powerManagement.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
TLP_DEFAULT_MODE = "BAT";
|
||||
TLP_PERSISTENT_DEFAULT = 1;
|
||||
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "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 = 20;
|
||||
|
||||
START_CHARGE_THRESH_BAT0 = 40; # and bellow it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 97; # and above it stops charging
|
||||
};
|
||||
};
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.settings = {
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
};
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
};
|
||||
}
|
||||
+2
-59
@@ -9,52 +9,11 @@
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
# Advance Power Management
|
||||
powerManagement.powertop.enable = true;
|
||||
powerManagement.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
TLP_DEFAULT_MODE = "BAT";
|
||||
TLP_PERSISTENT_DEFAULT = 1;
|
||||
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "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 = 20;
|
||||
|
||||
START_CHARGE_THRESH_BAT0 = 40; # and bellow it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 97; # and above it stops charging
|
||||
};
|
||||
};
|
||||
services.auto-cpufreq.enable = true;
|
||||
services.auto-cpufreq.settings = {
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
};
|
||||
charger = {
|
||||
governor = "performance";
|
||||
turbo = "auto";
|
||||
};
|
||||
};
|
||||
|
||||
# Logind
|
||||
services.logind = {
|
||||
lidSwitchExternalPower = "suspend-then-hibernate";
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
powerKey = "lock";
|
||||
extraConfig = ''
|
||||
HandlePowerKey=suspend-then-hibernate
|
||||
IdleAction=suspend-then-hibernate
|
||||
@@ -65,25 +24,9 @@
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# enables support for Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# Yubikey
|
||||
services.yubikey-agent.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Special Cronjobs
|
||||
services.cron = {
|
||||
enable = true;
|
||||
|
||||
Reference in new issue
Block a user