-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
31 lines (25 loc) · 853 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
description = "Paste service and companion CLI tool";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems }:
let
forAllSystems = nixpkgs.lib.genAttrs (import systems);
pkgsFor = nixpkgs.legacyPackages;
in
rec {
nixosModules.server = import ./server/nixos-module.nix;
homeManagerModules.cli = import ./cli/hm-module.nix;
packages = forAllSystems (system: {
server = pkgsFor.${system}.callPackage ./server { };
cli = pkgsFor.${system}.callPackage ./cli { };
tests = pkgsFor.${system}.callPackage ./tests { };
});
devShells = forAllSystems (system: {
default = pkgsFor.${system}.callPackage ./shell.nix { };
});
hydraJobs = packages;
};
}