-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathflake.nix
54 lines (49 loc) · 1.41 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
54
{
outputs = {
self,
nixpkgs,
}: let
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
in {
lib = {
mkLuaPackage = import ./nix/lua.nix self;
};
packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
mkPkg = src:
import src {
inherit self pkgs;
mkAstalPkg = import ./nix/mkAstalPkg.nix pkgs;
};
in {
default = self.packages.${system}.io;
docs = import ./docs {inherit self pkgs;};
io = mkPkg ./lib/astal/io;
astal3 = mkPkg ./lib/astal/gtk3;
astal4 = mkPkg ./lib/astal/gtk4;
apps = mkPkg ./lib/apps;
auth = mkPkg ./lib/auth;
battery = mkPkg ./lib/battery;
bluetooth = mkPkg ./lib/bluetooth;
cava = mkPkg ./lib/cava;
greet = mkPkg ./lib/greet;
hyprland = mkPkg ./lib/hyprland;
mpris = mkPkg ./lib/mpris;
network = mkPkg ./lib/network;
notifd = mkPkg ./lib/notifd;
powerprofiles = mkPkg ./lib/powerprofiles;
river = mkPkg ./lib/river;
tray = mkPkg ./lib/tray;
wireplumber = mkPkg ./lib/wireplumber;
gjs = import ./lang/gjs {inherit self pkgs;};
});
devShells = forAllSystems (system:
import ./nix/devshell.nix {
inherit self;
pkgs = nixpkgs.legacyPackages.${system};
});
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
}