diff options
author | Griffin Smith <root@gws.fyi> | 2022-07-21T03·44-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-07-21T03·50+0000 |
commit | 5eb5fa2d9c8dadc991df0d1d157f43916fd181ee (patch) | |
tree | 34d14f4536c12c121d9ed5169d2ae145e1907fd4 /users/grfn/system/home | |
parent | 7ac9b76c3cd42d0754bcde9bba0c9da0c64ec844 (diff) |
fix(grfn/home): Don't display battery for ogopogo r/4308
there isn't one Change-Id: I154e1d6a7a3ae1f87242209a175ef32dc43eefe4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5964 Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/system/home')
-rw-r--r-- | users/grfn/system/home/machines/ogopogo.nix | 1 | ||||
-rw-r--r-- | users/grfn/system/home/modules/i3.nix | 34 |
2 files changed, 23 insertions, 12 deletions
diff --git a/users/grfn/system/home/machines/ogopogo.nix b/users/grfn/system/home/machines/ogopogo.nix index 19d3a5467265..e4144e79806e 100644 --- a/users/grfn/system/home/machines/ogopogo.nix +++ b/users/grfn/system/home/machines/ogopogo.nix @@ -20,6 +20,7 @@ in system.machine = { wirelessInterface = "wlp4s0"; i3FontSize = 9; + battery = false; }; home.packages = with pkgs; [ diff --git a/users/grfn/system/home/modules/i3.nix b/users/grfn/system/home/modules/i3.nix index c6e198c98a31..c9e485006b05 100644 --- a/users/grfn/system/home/modules/i3.nix +++ b/users/grfn/system/home/modules/i3.nix @@ -23,18 +23,26 @@ let in { options = with lib; { - system.machine.wirelessInterface = mkOption { - description = '' - Name of the primary wireless interface. Used by i3status, etc. - ''; - default = "wlp3s0"; - type = types.str; - }; + system.machine = { + wirelessInterface = mkOption { + description = '' + Name of the primary wireless interface. Used by i3status, etc. + ''; + default = "wlp3s0"; + type = types.str; + }; - system.machine.i3FontSize = mkOption { - description = "Font size to use in i3 window decorations etc."; - default = 6; - type = types.int; + i3FontSize = mkOption { + description = "Font size to use in i3 window decorations etc."; + default = 6; + type = types.int; + }; + + battery = mkOption { + description = "Does this system have a battery?"; + default = true; + type = types.bool; + }; }; }; @@ -231,7 +239,9 @@ in order += "wireless ${config.system.machine.wirelessInterface}" # order += "ethernet enp3s0f0" order += "cpu_usage" - order += "battery 0" + ${lib.optionalString (config.system.machine.battery) '' + order += "battery 0" + ''} # order += "volume master" order += "time" order += "tztime utc" |