-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
52 lines (51 loc) · 1.24 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
inputs = {
naersk.url = "github:nix-community/naersk";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = {naersk, ...} @ inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
flake = let
module = import ./module.nix {inherit inputs;};
in {
homeManagerModules = {
default = module;
phomemo-d30 = module;
};
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = {
config,
system,
pkgs,
lib,
...
}: let
d30-cli-full = pkgs.callPackage ./pkg.nix {
inherit naersk;
fullBuild = true;
guiPreview = true;
};
d30-cli-preview = pkgs.callPackage ./pkg.nix {
inherit naersk;
fullBuild = false;
guiPreview = true;
};
d30-cli = pkgs.callPackage ./pkg.nix {
inherit naersk;
};
in {
packages = {
default = d30-cli-full;
inherit d30-cli-full;
inherit d30-cli;
inherit d30-cli-preview;
};
};
};
}