20 lines
523 B
Nix
20 lines
523 B
Nix
{ pkgs, config, lib, ... }: {
|
|
home-manager.users.balsoft = {
|
|
home.activation.yt-config = "$DRY_RUN_CMD ln -sf $VERBOSE_ARG ${config.secrets-envsubst.yt} $HOME/.yt.yaml";
|
|
};
|
|
secrets-envsubst.yt = {
|
|
secrets = [ "user" "token" ];
|
|
owner = "balsoft:users";
|
|
template = builtins.toJSON {
|
|
yt-token = "$user";
|
|
user = "$token";
|
|
from = {
|
|
org = "/home/balsoft/Documents/serokell.org";
|
|
full-file = true;
|
|
};
|
|
since = "1997-11-19";
|
|
severity = "Info";
|
|
};
|
|
};
|
|
}
|