diff options
Diffstat (limited to 'modules/py3status/default.nix')
| -rw-r--r-- | modules/py3status/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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; + }; +} |