diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..b0e8ac5 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1720418205, + "narHash": "sha256-cPJoFPXU44GlhWg4pUk9oUPqurPlCFZ11ZQPk21GTPU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "655a58a72a6601292512670343087c2d75d859c1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 472c13e..5d12703 100644 --- a/flake.nix +++ b/flake.nix @@ -1,33 +1,49 @@ { - outputs = { self, ... }: { - overlays.default = final: prev: { - modules = { - matrix-alertmanager-receiver = import ./modules/matrix-alertmanager-receiver.nix; - }; + description = "my overlay"; - hacompanion = prev.callPackage ./hacompanion { }; - cpthook = prev.callPackage ./cpthook { }; - - python3 = prev.python3.override { - packageOverrides = python-final: python-prev: { - pytapo = python-final.callPackage ./pytapo { }; - brother-ql = python-final.callPackage ./brother-ql { }; - }; - }; - - #gotosocial = prev.callPackage ./gotosocial { }; - #pulse-secure = prev.callPackage ./pulse-secure { }; - studio-link = prev.callPackage ./studio-link { }; - #nginxModules = prev.recurseIntoAttrs (super.callPackage ./nginx/modules.nix { }); - libedgetpu = final.callPackage ./libedgetpu { }; - neolink = final.callPackage ./neolink { }; - #mealie = final.callPackage ./mealie { }; - gohome = final.callPackage ./gohome { }; - matrix-alertmanager-receiver = final.callPackage ./matrix-alertmanager-receiver { }; - vimPlugins = prev.vimPlugins.extend (final': super': { - netrw-nvim = prev.callPackage ./netrw-nvim { }; - }); - salt-lint = prev.callPackage ./salt-lint { }; - }; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + overlays = [ + self.overlays.default + ]; + }; + in + { + overlays.default = final: prev: { + modules = { + matrix-alertmanager-receiver = import ./modules/matrix-alertmanager-receiver.nix; + }; + + hacompanion = prev.callPackage ./hacompanion { }; + cpthook = prev.callPackage ./cpthook { }; + + python3 = prev.python3.override { + packageOverrides = python-final: python-prev: { + pytapo = python-final.callPackage ./pytapo { }; + brother-ql = python-final.callPackage ./brother-ql { }; + }; + }; + + #gotosocial = prev.callPackage ./gotosocial { }; + #pulse-secure = prev.callPackage ./pulse-secure { }; + studio-link = prev.callPackage ./studio-link { }; + #nginxModules = prev.recurseIntoAttrs (super.callPackage ./nginx/modules.nix { }); + libedgetpu = final.callPackage ./libedgetpu { }; + neolink = final.callPackage ./neolink { }; + #mealie = final.callPackage ./mealie { }; + gohome = final.callPackage ./gohome { }; + matrix-alertmanager-receiver = final.callPackage ./matrix-alertmanager-receiver { }; + vimPlugins = prev.vimPlugins.extend (final': super': { + netrw-nvim = prev.callPackage ./netrw-nvim { }; + }); + salt-lint = prev.callPackage ./salt-lint { }; + }; + }; }