-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
53 lines (49 loc) · 1.07 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
53
{
description = "AyuGram Desktop";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
};
nixConfig = {
sandbox = true;
extra-substituters = [
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
outputs =
{
self,
nixpkgs,
...
}@inputs:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in
{
overlays.ayugaram-desktop = (
final: _prev: {
ayugram-desktop = self.packages;
}
);
nixosModules = {
ayugram-desktop = self.overlays;
default = self.overlays;
};
homeManagerModules = {
ayugram-desktop = self.overlays;
default = self.overlays;
};
packages = forAllSystems (pkgs: {
ayugram-desktop = pkgs.libsForQt5.callPackage ./default.nix { };
});
};
}