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,5 +1,21 @@
{
outputs = { self, ... }: {
description = "my overlay";
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;