From c6dd91012896370efeac10b824fa3f1f60d333d7 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sat, 7 Oct 2023 08:54:33 +0200 Subject: [PATCH] feat: enable cbatticon on laptop --- hosts/configuration.nix | 2 +- hosts/laptop/home.nix | 21 ++++++--------------- modules/programs/alacritty.nix | 2 +- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index a07c651..5d2dd44 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -136,7 +136,7 @@ }; nix = { # Nix Package Manager settings - settings ={ + settings = { auto-optimise-store = true; # Optimise syslinks substituters = [ "https://cache.nixos.org" diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index ded7a9a..3ccc9d7 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -27,26 +27,17 @@ packages = with pkgs; [ unstable.distrobox - # Display - #light # xorg.xbacklight not supported. Other option is just use xrandr. - # Power Management - #auto-cpufreq # Power management - #tlp # Power management + acpi ]; }; - programs = { - alacritty.settings.font.size = 11; - }; - services = { # Applets network-manager-applet.enable = true; # Network -# cbatticon = { -# enable = true; -# criticalLevelPercent = 10; -# lowLevelPercent = 20; -# iconType = null; -# }; + cbatticon = { + enable = true; + criticalLevelPercent = 10; + lowLevelPercent = 20; + }; }; } diff --git a/modules/programs/alacritty.nix b/modules/programs/alacritty.nix index f390601..e1b7081 100644 --- a/modules/programs/alacritty.nix +++ b/modules/programs/alacritty.nix @@ -21,7 +21,7 @@ font = rec { # Font - Laptop has size manually changed at home.nix normal.family = "FiraCode Nerd Font"; bold = { style = "Bold"; }; - size = lib.mkForce 12; + size = 12; }; offset = { # Positioning x = -1; -- 2.48.1