coquille/flake.nix
Anthony Rodriguez 5a918d507a
feat: add functionalities to bar
This is the base of the bar I want to work with. It includes workspaces
for Hyprland, a time/calendar widget, and quick settings including:

- Toggles for wifi, bluetooth and idle inhibition (using matcha as a
dependency)
- Sliders for audio and brightness
2025-02-14 22:19:57 +01:00

62 lines
1.3 KiB
Nix

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