~ruther/nixos-config

c6dd91012896370efeac10b824fa3f1f60d333d7 — Frantisek Bohacek 1 year, 6 months ago 884fd56
feat: enable cbatticon on laptop
3 files changed, 8 insertions(+), 17 deletions(-)

M hosts/configuration.nix
M hosts/laptop/home.nix
M modules/programs/alacritty.nix
M hosts/configuration.nix => hosts/configuration.nix +1 -1
@@ 136,7 136,7 @@
  };

  nix = {                                   # Nix Package Manager settings
    settings ={
    settings = {
      auto-optimise-store = true;           # Optimise syslinks
      substituters = [
        "https://cache.nixos.org"

M hosts/laptop/home.nix => hosts/laptop/home.nix +6 -15
@@ 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;
   };
  };
}

M modules/programs/alacritty.nix => modules/programs/alacritty.nix +1 -1
@@ 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;

Do not follow this link