t14: fix battery indicator config
This commit is contained in:
parent
bf7cd5544c
commit
b0440fa4c1
3 changed files with 24 additions and 15 deletions
|
@ -9,6 +9,10 @@ with lib; let
|
|||
in {
|
||||
options.local.defaultDesktopPack = {
|
||||
enable = mkEnableOption "common desktop programs and services";
|
||||
laptop = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.local.gui;
|
||||
laptop = config.trivium.laptop.enable;
|
||||
laptop = config.local.defaultDesktopPack.laptop;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
programs.waybar = {
|
||||
|
@ -26,7 +26,8 @@ in {
|
|||
"clock"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
modules-right =
|
||||
[
|
||||
"privacy"
|
||||
"cpu"
|
||||
"memory"
|
||||
|
@ -34,7 +35,8 @@ in {
|
|||
"temperature"
|
||||
"keyboard-state"
|
||||
"tray"
|
||||
] ++ lists.optionals laptop [
|
||||
]
|
||||
++ lists.optionals laptop [
|
||||
"battery"
|
||||
];
|
||||
"battery" = mkIf laptop {
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
];
|
||||
|
||||
local = {
|
||||
defaultDesktopPack.enable = true;
|
||||
defaultDesktopPack = {
|
||||
enable = true;
|
||||
laptop = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
gpg.defaultKey = "7206D8EE2474F3DF18EA876F0EC1691FF8C1A81F";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue