aboutsummaryrefslogtreecommitdiff
path: root/flakes/private/paste
diff options
context:
space:
mode:
Diffstat (limited to 'flakes/private/paste')
-rw-r--r--flakes/private/paste/flake.lock72
-rw-r--r--flakes/private/paste/flake.nix23
2 files changed, 95 insertions, 0 deletions
diff --git a/flakes/private/paste/flake.lock b/flakes/private/paste/flake.lock
new file mode 100644
index 0000000..939d589
--- /dev/null
+++ b/flakes/private/paste/flake.lock
@@ -0,0 +1,72 @@
1{
2 "nodes": {
3 "flake-utils": {
4 "locked": {
5 "lastModified": 1631561581,
6 "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=",
7 "owner": "numtide",
8 "repo": "flake-utils",
9 "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19",
10 "type": "github"
11 },
12 "original": {
13 "owner": "numtide",
14 "repo": "flake-utils",
15 "type": "github"
16 }
17 },
18 "nix-lib": {
19 "locked": {
20 "lastModified": 1631655525,
21 "narHash": "sha256-8U7zAdbjNItXo6eqI/rhtOa3LUPGD6yE9PTZQkrSGHo=",
22 "owner": "NixOS",
23 "repo": "nixpkgs",
24 "rev": "cf0caf529c33c140863ebfa43691f7b69fe2233c",
25 "type": "github"
26 },
27 "original": {
28 "owner": "NixOS",
29 "repo": "nixpkgs",
30 "type": "github"
31 }
32 },
33 "nixpkgs": {
34 "locked": {
35 "lastModified": 1631570365,
36 "narHash": "sha256-vc6bfo0hijpicdUDiui2DvZXmpIP2iqOFZRcpMOuYPo=",
37 "owner": "NixOS",
38 "repo": "nixpkgs",
39 "rev": "df7113c0727881519248d4c7d080324e0ee3327b",
40 "type": "github"
41 },
42 "original": {
43 "owner": "NixOS",
44 "repo": "nixpkgs",
45 "type": "github"
46 }
47 },
48 "paste": {
49 "inputs": {
50 "flake-utils": "flake-utils",
51 "nixpkgs": "nixpkgs"
52 },
53 "locked": {
54 "narHash": "sha256-oSabBrUGIkY8lKktXlIM4uYSVYI54wKnIjjVZwMOd70=",
55 "path": "../../paste",
56 "type": "path"
57 },
58 "original": {
59 "path": "../../paste",
60 "type": "path"
61 }
62 },
63 "root": {
64 "inputs": {
65 "nix-lib": "nix-lib",
66 "paste": "paste"
67 }
68 }
69 },
70 "root": "root",
71 "version": 7
72}
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 @@
1{
2 inputs.paste = {
3 path = "../../paste";
4 type = "path";
5 };
6 inputs.nix-lib.url = "github:NixOS/nixpkgs";
7
8 description = "Private configuration for paste";
9 outputs = { self, nix-lib, paste }:
10 let
11 cfg = name': { config, lib, pkgs, name, ... }: {
12 config = lib.mkIf (name == name') {
13 services.paste = {
14 enable = true;
15 webDirectory = "/paste";
16 };
17 };
18 };
19 in
20 paste.outputs //
21 { nixosModules = paste.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron"] cfg; };
22}
23