coquille/flake.nix

54 lines
1 KiB
Nix
Raw Normal View History

2025-02-10 02:55:59 +01:00
{
description = "My Awesome Desktop Shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
ags = {
url = "github:aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
ags,
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2025-02-11 17:51:09 +01:00
astalPkgs = with ags.packages.${system}; [
battery
hyprland
mpris
network
tray
wireplumber
];
2025-02-10 02:55:59 +01:00
in {
packages.${system} = {
default = ags.lib.bundle {
inherit pkgs;
src = ./.;
name = "coquille";
entry = "app.ts";
2025-02-11 17:51:09 +01:00
gtk4 = true;
2025-02-10 02:55:59 +01:00
# additional libraries and executables to add to gjs' runtime
2025-02-11 17:51:09 +01:00
extraPackages = astalPkgs;
2025-02-10 02:55:59 +01:00
};
};
devShells.${system} = {
default = pkgs.mkShell {
buildInputs = [
# includes astal3 astal4 astal-io by default
(ags.packages.${system}.default.override {
2025-02-11 17:51:09 +01:00
extraPackages = astalPkgs;
2025-02-10 02:55:59 +01:00
})
];
};
};
};
}