Wildcard encrypt files in secrets dir, util function to load

secrets, use apu-key in weather widget
This commit is contained in:
2025-03-01 15:04:56 +01:00
parent fd03c87c18
commit 7ab89cda7c
3 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,13 @@
{ pkgs, inputs, ... }:
{
pkgs,
inputs,
lib,
...
}:
let
common = import ../../../common.nix;
theme = import ../../../theme.nix;
loader = import ../../secretsLoader.nix lib;
in
{
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
@ -74,7 +80,8 @@ in
};
weather = {
unit = "metric";
location = "Bergen, Norway"; # TODO not working
location = "Bergen, Norway";
key = loader.loadSecret ../../secrets/weather-api-key;
};
};