feat: move status-bar to seperate repository, initial commit

This commit is contained in:
2025-09-24 21:11:28 -07:00
commit 68142eac7c
24 changed files with 664 additions and 0 deletions

62
flake.nix Normal file
View File

@@ -0,0 +1,62 @@
{
description = "Desktop widgets";
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};
extraPkgs = with ags.packages.${system}; [
hyprland
battery
wireplumber
network
];
in
{
packages.${system} = {
status-bar = ags.lib.bundle {
inherit pkgs;
src = ./.;
name = "status-bar";
entry = "app.ts";
extraPackages =
with pkgs;
extraPkgs
++ [
libgtop
];
};
};
devShells.${system} = {
default = pkgs.mkShell {
buildInputs = [
(ags.packages.${system}.default.override {
extraPackages =
with pkgs;
extraPkgs
++ [
libgtop
];
})
];
};
};
};
}