nixos-config/modules/applications/yt-utilities.nix

21 lines
604 B
Nix
Raw Normal View History

2021-06-12 02:21:24 +04:00
{ pkgs, config, lib, inputs, ... }: {
home-manager.users.balsoft = {
2021-06-12 02:21:24 +04:00
home.packages = [ inputs.yt-utilities.defaultPackage.x86_64-linux ];
home.activation.yt-config = "$DRY_RUN_CMD ln -sf $VERBOSE_ARG ${config.secrets-envsubst.yt} $HOME/.yt.yaml";
};
secrets-envsubst.yt = {
2021-01-12 16:13:03 +04:00
secrets = [ "user" "token" ];
owner = "balsoft:users";
template = builtins.toJSON {
2021-01-13 15:45:01 +04:00
yt-token = "$token";
user = "$user";
2020-02-17 17:00:59 +04:00
from = {
2020-12-27 11:16:20 +04:00
org = "/home/balsoft/Documents/serokell.org";
2020-02-17 17:00:59 +04:00
full-file = true;
};
since = "1997-11-19";
severity = "Info";
};
};
}