aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-11-30 15:15:35 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-11-30 15:15:35 +0200
commit651b8a9199cdf5b758ff1d21f8339a9023c8cae0 (patch)
tree96d05c6e821cf1d05412a481c7180261bfe52964
parentdf79d8fd48fcaa92dcfec6dde15a7a61bc3f6b3f (diff)
downloadnixos-651b8a9199cdf5b758ff1d21f8339a9023c8cae0.tar.zst
Add the access key as env variable
-rw-r--r--home/default.nix1
-rw-r--r--home/wallpapers/default.nix4
2 files changed, 1 insertions, 4 deletions
diff --git a/home/default.nix b/home/default.nix
index 85f511c..a232d81 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -359,6 +359,7 @@
VISUAL = "${pkgs.neovim}/bin/nvim";
OPENAI_API_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.openai_auth_token.path})";
SHIORI_PASSWORD = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.shiori_password.path})";
+ UNSPLASH_ACCESS_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.unsplash_access_key.path})";
};
pointerCursor = {
diff --git a/home/wallpapers/default.nix b/home/wallpapers/default.nix
index 458f711..c981d8e 100644
--- a/home/wallpapers/default.nix
+++ b/home/wallpapers/default.nix
@@ -60,11 +60,7 @@ in
Description = "Fetch and update 4K nature wallpaper for Hyprpaper";
After = [ "graphical-session.target" ];
};
-
Service = {
- Environment = [
- "UNSPLASH_ACCESS_KEY=$(${pkgs.coreutils}/bin/cat ${config.age.secrets.unsplash_access_key.path})"
- ];
Type = "oneshot";
ExecStart = "${wallpaperScript}";
};