From a9f52ec521e45204ad9363dd143b32ac9910b6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 14 Sep 2021 02:28:09 +0200 Subject: Add flask app paste --- flakes/private/paste/flake.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flakes/private/paste/flake.nix (limited to 'flakes/private/paste/flake.nix') diff --git a/flakes/private/paste/flake.nix b/flakes/private/paste/flake.nix new file mode 100644 index 0000000..71314e8 --- /dev/null +++ b/flakes/private/paste/flake.nix @@ -0,0 +1,23 @@ +{ + inputs.paste = { + path = "../../paste"; + type = "path"; + }; + inputs.nix-lib.url = "github:NixOS/nixpkgs"; + + description = "Private configuration for paste"; + outputs = { self, nix-lib, paste }: + let + cfg = name': { config, lib, pkgs, name, ... }: { + config = lib.mkIf (name == name') { + services.paste = { + enable = true; + webDirectory = "/paste"; + }; + }; + }; + in + paste.outputs // + { nixosModules = paste.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron"] cfg; }; +} + -- cgit v1.2.3