aboutsummaryrefslogtreecommitdiff
path: root/modules/py3status/default.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:26:13 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-27 14:26:13 -0400
commitfcb37bdf9e6107f1d34ff05c8558021d67a0aeec (patch)
treeec47e383d1cdf184443854a75ae0d5a894327fe4 /modules/py3status/default.nix
parentf2fb01a55b54dae9a5c26c7e1bae3d17c18de73e (diff)
downloadhome-fcb37bdf9e6107f1d34ff05c8558021d67a0aeec.tar.gz
modules/py3status: init
Diffstat (limited to 'modules/py3status/default.nix')
-rw-r--r--modules/py3status/default.nix20
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;
+ };
+}