about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-06 06:19:29 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-06 06:19:29 -0800
commitc0b9780594366f9256b6f46ac0955d70281c38b6 (patch)
tree2e717c3107f010af8c8afcb06cf7866e92b52f4e /nix
parentadd configuration for my work machine (diff)
downloadworld-c0b9780594366f9256b6f46ac0955d70281c38b6.tar.gz
install my own scripts
This is the first step to re-enable installing custom scripts. The next
step will be to rename `tools` to `packages`, and then if needed I will
be able to support overlays.
Diffstat (limited to 'nix')
-rw-r--r--nix/flake/hosts.nix4
-rw-r--r--nix/flake/packages.nix16
-rw-r--r--nix/profiles/home-manager/personal.nix3
3 files changed, 20 insertions, 3 deletions
diff --git a/nix/flake/hosts.nix b/nix/flake/hosts.nix
index 7348672..8e9316a 100644
--- a/nix/flake/hosts.nix
+++ b/nix/flake/hosts.nix
@@ -1,4 +1,4 @@
-{ inputs, ... }:
+{ inputs, self, ... }:
 let
   inherit (inputs) nixpkgs darwin home-manager firefox-darwin nur;
   inherit (nixpkgs.lib) mkMerge;
@@ -18,7 +18,7 @@ let
           ];
         }
       ];
-      specialArgs = { inherit inputs; };
+      specialArgs = { inherit inputs self; };
     };
 in
 {
diff --git a/nix/flake/packages.nix b/nix/flake/packages.nix
new file mode 100644
index 0000000..38e243f
--- /dev/null
+++ b/nix/flake/packages.nix
@@ -0,0 +1,16 @@
+{ inputs, ... }: {
+  imports = [
+    inputs.flake-parts.flakeModules.easyOverlay
+  ];
+
+  perSystem = { config, pkgs, ... }: {
+    overlayAttrs = {
+      inherit (config.packages)
+        seqstat;
+    };
+
+    packages = {
+      seqstat = pkgs.callPackage ../../tools/seqstat { };
+    };
+  };
+}
diff --git a/nix/profiles/home-manager/personal.nix b/nix/profiles/home-manager/personal.nix
index 5beb11e..0d8b5a5 100644
--- a/nix/profiles/home-manager/personal.nix
+++ b/nix/profiles/home-manager/personal.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }: {
+{ pkgs, self, ... }: {
 
   home.stateVersion = "23.05";
 
@@ -21,6 +21,7 @@
     ripgrep
     rnix-lsp
     tree
+    self.packages.${pkgs.system}.seqstat
   ];
 
   home.sessionVariables = {