]>
Commit | Line | Data |
---|---|---|
a9f52ec5 IB |
1 | { |
2 | inputs.paste = { | |
3 | path = "../../paste"; | |
4 | type = "path"; | |
5 | }; | |
042ada3b IB |
6 | inputs.my-lib = { |
7 | path = "../../lib"; | |
8 | type = "path"; | |
9 | }; | |
a9f52ec5 IB |
10 | inputs.nix-lib.url = "github:NixOS/nixpkgs"; |
11 | ||
12 | description = "Private configuration for paste"; | |
042ada3b | 13 | outputs = { self, my-lib, nix-lib, paste }: |
a9f52ec5 IB |
14 | let |
15 | cfg = name': { config, lib, pkgs, name, ... }: { | |
042ada3b IB |
16 | imports = [ |
17 | (my-lib.lib.withNarKey paste "nixosModule") | |
18 | ]; | |
a9f52ec5 IB |
19 | config = lib.mkIf (name == name') { |
20 | services.paste = { | |
21 | enable = true; | |
22 | webDirectory = "/paste"; | |
23 | }; | |
24 | }; | |
25 | }; | |
26 | in | |
27 | paste.outputs // | |
28 | { nixosModules = paste.nixosModules or {} // nix-lib.lib.genAttrs ["eldiron"] cfg; }; | |
29 | } | |
30 |