Files
dotfiles/home/natto/zsh.nix
2025-06-14 17:24:32 +05:30

17 lines
302 B
Nix

{ config, lib, ... }:
let
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
in
{
programs.zsh.initContent = lib.mkAfter ''
. ${secretPath};
'';
age.secrets.zshenv_secret = {
file = ./secrets/zshenv_secret;
path = secretPath;
symlink = false;
mode = "660";
};
}