Files
dotfiles/home/natto/zsh.nix
2024-02-25 17:15:17 +05:30

17 lines
305 B
Nix

{ config, lib, ... }:
let
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
in
{
programs.zsh.initExtra = lib.mkForce ''
. ${secretPath};
unsetopt extendedGlob
'';
age.secrets.zshenv_secret = {
file = ./secrets/zshenv_secret;
path = secretPath;
mode = "660";
};
}