about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix35
1 files changed, 28 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index fc96852..a1fe2f5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -145,6 +145,17 @@
     #     nixpkgs.follows = "nixpkgs";
     #   };
     # };
+    # alertmanager-gotify = {
+    #   type = "github";
+    #   owner = "pinpox";
+    #   repo = "alertmanager-ntfy";
+    #   ref = "main";
+    #   inputs = {
+    #     flake-compat.follows = "flake-compat";
+    #     flake-utils.follows = "flake-utils";
+    #     nixpkgs.follows = "nixpkgs";
+    #   };
+    # };
 
     flake-utils = {
       type = "github";
@@ -236,7 +247,6 @@
           overlays = [self.overlays.default];
         };
       in {
-        # TODO Add packages from `self.overlay.default`.
         packages = with lib;
           (mapAttrs (_: c: c.config.system.build.toplevel)
             (builtins.removeAttrs self.nixosConfigurations ["iso-arm" "iso-x86"]))
@@ -298,12 +308,23 @@
         darwinModules.nixfiles = import ./modules/darwin;
         darwinConfigurations = importConfigurations ./darwinConfigurations;
 
-        overlays.default = final: _: {
-          bruh = final.callPackage ./packages/bruh.nix {};
-          mpv-autosub = final.callPackage ./packages/mpv-autosub.nix {};
-          myip = final.callPackage ./packages/myip.nix {};
-          nixfiles = final.callPackage ./packages/nixfiles.nix {};
-          throttled = final.callPackage ./packages/throttled.nix {};
+        overlays.default = final: prev: rec {
+          bruh = prev.callPackage ./packages/bruh.nix {};
+          mpv-autosub = prev.callPackage ./packages/mpv-autosub.nix {};
+          myip = prev.callPackage ./packages/myip.nix {};
+          nixfiles = prev.callPackage ./packages/nixfiles.nix {};
+          throttled = prev.callPackage ./packages/throttled.nix {};
+          logcli = prev.grafana-loki.overrideAttrs (_: super: {
+            pname = "logcli";
+            subPackages = ["cmd/logcli"];
+            nativeBuildInputs = super.nativeBuildInputs ++ [final.installShellFiles];
+            postInstall = ''
+              installShellCompletion --cmd logcli \
+                --bash <($out/bin/logcli --completion--script-bash) \
+                --zsh <($out/bin/logcli --completion-script-zsh)
+            '';
+            preFixup = null;
+          });
         };
       });
 }

Consider giving Nix/NixOS a try! <3