Files
dotfiles/home/natto/zsh.nix
2024-06-01 17:10:24 +05:30

18 lines
326 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;
symlink = false;
mode = "660";
};
}