diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-17 00:00:17 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-17 00:00:17 +0530 |
| commit | e8344d9f10cc3313c69dc9717d02602645048c1a (patch) | |
| tree | 7d9d7f1c6eeba36864d6a64956423dae8e124972 /modules/dashboard/default.nix | |
| parent | 926f411a4c703cab001d64b7f8b9701b79a7dc5c (diff) | |
| download | homeserver-nixos-config-e8344d9f10cc3313c69dc9717d02602645048c1a.tar.gz homeserver-nixos-config-e8344d9f10cc3313c69dc9717d02602645048c1a.zip | |
Add immich
Diffstat (limited to 'modules/dashboard/default.nix')
| -rw-r--r-- | modules/dashboard/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/dashboard/default.nix b/modules/dashboard/default.nix index 9bde252..f3c55ff 100644 --- a/modules/dashboard/default.nix +++ b/modules/dashboard/default.nix @@ -1,10 +1,18 @@ -{ settings, ... }: +{ settings, lib, ... }: +with lib; let links = import ./links.nix { inherit settings; }; + isKeysUnique = + let linkKeys = map (l: l.key) (filter (hasAttr "key") links); + in length linkKeys == length (lib.unique linkKeys); in { imports = [ ../../services/bacchus-dashboard/bacchus-dashboard.service.nix ]; + assertions = [ + { assertion = isKeysUnique; message = "The dashboard link 'key' property must be unique"; } + ]; + services.bacchus-dashboard = { enable = true; openFirewall = true; |
