diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-07 15:24:15 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-15 23:15:57 +0200 |
commit | 042ada3bfc4a139a4bae60d5e5d549e41c02bca4 (patch) | |
tree | 0ae344aa1f60bae6ebeebb62620f0239d2a08be9 /flakes/private/paste/flake.nix | |
parent | 910c2e9eb4996bfa12cd1ef925843403f7d3e154 (diff) | |
download | Nix-042ada3bfc4a139a4bae60d5e5d549e41c02bca4.tar.gz Nix-042ada3bfc4a139a4bae60d5e5d549e41c02bca4.tar.zst Nix-042ada3bfc4a139a4bae60d5e5d549e41c02bca4.zip |
Refactor paste
Diffstat (limited to 'flakes/private/paste/flake.nix')
-rw-r--r-- | flakes/private/paste/flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flakes/private/paste/flake.nix b/flakes/private/paste/flake.nix index 71314e8..23f8cd3 100644 --- a/flakes/private/paste/flake.nix +++ b/flakes/private/paste/flake.nix | |||
@@ -3,12 +3,19 @@ | |||
3 | path = "../../paste"; | 3 | path = "../../paste"; |
4 | type = "path"; | 4 | type = "path"; |
5 | }; | 5 | }; |
6 | inputs.my-lib = { | ||
7 | path = "../../lib"; | ||
8 | type = "path"; | ||
9 | }; | ||
6 | inputs.nix-lib.url = "github:NixOS/nixpkgs"; | 10 | inputs.nix-lib.url = "github:NixOS/nixpkgs"; |
7 | 11 | ||
8 | description = "Private configuration for paste"; | 12 | description = "Private configuration for paste"; |
9 | outputs = { self, nix-lib, paste }: | 13 | outputs = { self, my-lib, nix-lib, paste }: |
10 | let | 14 | let |
11 | cfg = name': { config, lib, pkgs, name, ... }: { | 15 | cfg = name': { config, lib, pkgs, name, ... }: { |
16 | imports = [ | ||
17 | (my-lib.lib.withNarKey paste "nixosModule") | ||
18 | ]; | ||
12 | config = lib.mkIf (name == name') { | 19 | config = lib.mkIf (name == name') { |
13 | services.paste = { | 20 | services.paste = { |
14 | enable = true; | 21 | enable = true; |