From fcb37bdf9e6107f1d34ff05c8558021d67a0aeec Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Sun, 27 Jul 2025 14:26:13 -0400 Subject: modules/py3status: init --- modules/py3status/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/py3status/default.nix (limited to 'modules/py3status/default.nix') diff --git a/modules/py3status/default.nix b/modules/py3status/default.nix new file mode 100644 index 0000000..01c8b96 --- /dev/null +++ b/modules/py3status/default.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.py3status; +in +{ + options.modules.py3status = { + enable = lib.mkEnableOption "py3status"; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + (python3Packages.py3status.overrideAttrs (oldAttrs: { + propagatedBuildInputs = with python3Packages; [ pytz tzlocal pygobject3 ] ++ oldAttrs.propagatedBuildInputs; + })) + i3status + ]; + + xdg.configFile."i3status/config".source = ./config; + }; +} -- cgit v1.2.3