diff options
Diffstat (limited to '')
-rw-r--r-- | hm/soispha/conf/firefox/config/bookmarks/default.nix | 46 | ||||
-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 |