Flakes aren't real. flakes can't hurt you

This commit is contained in:
fleaz 2024-07-10 00:10:10 +02:00
parent 5523fac8d9
commit 4456a706e9
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 72 additions and 29 deletions

27
flake.lock Normal file
View file

@ -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
}

View file

@ -1,33 +1,49 @@
{ {
outputs = { self, ... }: { description = "my overlay";
overlays.default = final: prev: {
modules = {
matrix-alertmanager-receiver = import ./modules/matrix-alertmanager-receiver.nix;
};
hacompanion = prev.callPackage ./hacompanion { }; inputs = {
cpthook = prev.callPackage ./cpthook { }; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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 { };
};
}; };
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 { };
};
};
} }