Files
dotfiles/home/natto/zsh.nix
2023-03-08 10:08:50 +05:30

17 lines
306 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";
};
}