about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-29 17:31:00 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:32:58 +0200
commitfb206f9be18b4936ef716935c2343531acaf92c2 (patch)
tree88a86e5ae9f27a050d22397cc2d991a8b9e9b70b /flake.nix
parentDocs(todo): Update (diff)
downloadnixos-config-fb206f9be18b4936ef716935c2343531acaf92c2.tar.gz
nixos-config-fb206f9be18b4936ef716935c2343531acaf92c2.zip
Refactor(treewide): Use separate shell library
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 13 insertions, 9 deletions
diff --git a/flake.nix b/flake.nix
index 0c4167d5..0923bd25 100644
--- a/flake.nix
+++ b/flake.nix
@@ -107,9 +107,13 @@
         flake-utils.follows = "flake-utils";
       };
     };
-    shell-library = {
-      url = "git+https://git.sils.li/ene/lib-sh.git";
-      flake = false;
+    shell_library = {
+      url = "git+https://codeberg.org/soispha/shell_library.git";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+        flake-utils.follows = "flake-utils";
+        systems.follows = "systems";
+      };
     };
     river_init_lesser = {
       url = "git+https://git.sils.li/ene/river-lesser-init.git";
@@ -165,14 +169,14 @@
     # my binaries
     video_pause,
     strip_js_comments,
-    shell-library,
+    shell_library,
     river_init_lesser,
     yambar_memory,
     yambar_cpu,
     grades,
     ...
   }: let
-    sysLib = import ./lib {inherit pkgs shell-library;};
+    sysLib = shell_library.lib.${system};
     system = "x86_64-linux";
     pkgs = import nixpkgs (import ./system/nixpkgs {
       inherit (nixpkgs) lib;
@@ -187,23 +191,23 @@
         sysLib
         nixpkgs
         # modules
-        
+
         home-manager
         nixos-generators
         impermanence
         agenix
         ragenix
         # external dependencies
-        
+
         neovim_config
         user_js
         snap-sync
         templates
         # my binaries
-        
+
         video_pause
         strip_js_comments
-        shell-library
+        shell_library
         river_init_lesser
         yambar_memory
         yambar_cpu