1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-03-15 08:44:13 +00:00
.dotfiles/nixos/docker/homepage/default.nix

20 lines
428 B
Nix
Raw Normal View History

2025-03-05 07:46:56 -05:00
{ pkgs, ... }: let
cfg = options.containers.homepage;
settingsFormat = pkgs.formats.yaml;
in {
options.containers.homepage = {
enable = mkEnableOption "homepage";
widgets = mkOption {
inherit (settingsFormat) type;
2025-03-03 23:55:20 -05:00
};
};
2025-03-05 07:46:56 -05:00
config = {
inherit (./compose.nix);
environment.etc = lib.mkIf cfg.enable {
"homepage-dashboard/widgets.yaml".source = settingsFormat.generate "widgets.yaml" cfg.widgets;
2025-03-03 23:55:20 -05:00
};
};
}