-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
57 lines (51 loc) · 1.12 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
55
56
57
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
ags.url = "github:aylur/ags";
};
outputs = {
self,
nixpkgs,
ags,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
agsPkgs = with ags.packages.${system}; [
apps
bluetooth
hyprland
mpris
notifd
powerprofiles
battery
wireplumber
network
tray
];
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
(ags.packages.${system}.default.override {
extraPackages =
agsPkgs
++ (with pkgs; [alejandra dart-sass]);
})
];
};
packages.${system} = {
default = ags.lib.bundle {
inherit pkgs;
src = ./.;
name = "vastal"; # name of executable
entry = "app.ts";
extraPackages =
agsPkgs
++ (with pkgs; [dart-sass wrapGAppsHook gobject-introspection]);
};
ags = ags.packages.${system}.default.override {
extraPackages = agsPkgs;
};
astal = ags.packages.${system}.io;
};
};
}