about summary refs log tree commit diff stats
path: root/hm/soispha/conf/firefox/config/bookmarks
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-21 22:30:59 +0200
committerSoispha <soispha@vhack.eu>2023-10-21 22:30:59 +0200
commit27a254a27df47cac88ce8053b4efe575cf9c481e (patch)
tree5441124451062b275592bf798e9da88f10851f26 /hm/soispha/conf/firefox/config/bookmarks
parentfix(hm/conf/firefox/scr/extensions): Add required 'default_area' (diff)
downloadnixos-config-27a254a27df47cac88ce8053b4efe575cf9c481e.zip
feat(hm/conf/firefox): Use the policy.json file for configs
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/firefox/config/bookmarks/default.nix46
-rw-r--r--hm/soispha/conf/firefox/config/bookmarks/lib.nix (renamed from hm/soispha/conf/firefox/functions/bookmarks/default.nix)0
2 files changed, 28 insertions, 18 deletions
diff --git a/hm/soispha/conf/firefox/config/bookmarks/default.nix b/hm/soispha/conf/firefox/config/bookmarks/default.nix
index 8315cffd..c612bf4d 100644
--- a/hm/soispha/conf/firefox/config/bookmarks/default.nix
+++ b/hm/soispha/conf/firefox/config/bookmarks/default.nix
@@ -1,21 +1,31 @@
-[
-  {
-    name = "Feed - Piped";
-    url = "https://piped.video/feed";
-  }
+{
+  lib,
+  pkgs,
+  ...
+}: let
+  bookmarks = [
+    {
+      name = "Feed - Piped";
+      url = "https://piped.video/feed";
+    }
 
-  {
-    name = "DeepL Translate";
-    url = "https://www.deepl.com/translator";
-  }
+    {
+      name = "DeepL Translate";
+      url = "https://www.deepl.com/translator";
+    }
 
-  {
-    name = "Nix lib";
-    url = "https://teu5us.github.io/nix-lib.html";
-  }
+    {
+      name = "Nix lib";
+      url = "https://teu5us.github.io/nix-lib.html";
+    }
 
-  {
-    name = "Nixpkgs manual";
-    url = "https://ryantm.github.io/nixpkgs/";
-  }
-]
+    {
+      name = "Nixpkgs manual";
+      url = "https://ryantm.github.io/nixpkgs/";
+    }
+  ];
+
+  mkBookmarksFile = (import ./lib.nix) {inherit lib pkgs;};
+  bookmarks_file = mkBookmarksFile bookmarks;
+in
+  bookmarks_file
diff --git a/hm/soispha/conf/firefox/functions/bookmarks/default.nix b/hm/soispha/conf/firefox/config/bookmarks/lib.nix
index d1d89dd2..d1d89dd2 100644
--- a/hm/soispha/conf/firefox/functions/bookmarks/default.nix
+++ b/hm/soispha/conf/firefox/config/bookmarks/lib.nix