From 62f445c13c84df6a388b86b0a02f8aa08a7295a3 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Mon, 29 Sep 2025 07:40:43 -0400 Subject: [PATCH] {bash,zsh}: align sessionVariables type This matches `home.sessionVariables`. --- modules/programs/bash.nix | 3 ++- modules/programs/zsh/default.nix | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/programs/bash.nix b/modules/programs/bash.nix index dad1ba734..2201e04f3 100644 --- a/modules/programs/bash.nix +++ b/modules/programs/bash.nix @@ -137,8 +137,9 @@ in with types; lazyAttrsOf (oneOf [ str - int path + int + float ]); example = { MAILCHECK = 30; diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index 156f0c38f..92ba1d464 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -247,7 +247,14 @@ in sessionVariables = mkOption { default = { }; - type = types.attrs; + type = + with types; + lazyAttrsOf (oneOf [ + str + path + int + float + ]); example = { MAILCHECK = 30; };