Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove darwin from supported systems
  • Loading branch information
Aylur authored Dec 29, 2024
1 parent 28b634d commit 2fbbdd7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 110 deletions.
63 changes: 7 additions & 56 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 58 additions & 54 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
ags.url = "github:aylur/ags";
astal.url = "github:aylur/astal";

ags = {
url = "github:aylur/ags";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, ags, astal }: let
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
"aarch64-linux"
];
outputs = {
self,
nixpkgs,
ags,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
in {
packages = forEachSystem (system: let
Expand All @@ -23,50 +25,52 @@
name = "hyprpanel"; # name of executable
entry = "app.ts";

# additional libraries and executables to add to gjs' runtime
extraPackages = [
ags.packages.${system}.agsFull
astal.packages.${system}.tray
astal.packages.${system}.hyprland
astal.packages.${system}.io
astal.packages.${system}.apps
astal.packages.${system}.battery
astal.packages.${system}.bluetooth
astal.packages.${system}.mpris
astal.packages.${system}.network
astal.packages.${system}.notifd
astal.packages.${system}.powerprofiles
astal.packages.${system}.wireplumber
pkgs.fish
pkgs.typescript
pkgs.libnotify
pkgs.dart-sass
pkgs.fd
pkgs.btop
pkgs.bluez
pkgs.libgtop
pkgs.gobject-introspection
pkgs.glib
pkgs.bluez-tools
pkgs.grimblast
pkgs.brightnessctl
pkgs.gnome-bluetooth
(pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
gpustat
dbus-python
pygobject3
]))
pkgs.matugen
pkgs.hyprpicker
pkgs.hyprsunset
pkgs.hypridle
pkgs.wireplumber
pkgs.networkmanager
pkgs.upower
pkgs.gvfs
pkgs.swww
pkgs.pywal
] ++ (nixpkgs.lib.optionals (system == "x86_64-linux") [pkgs.gpu-screen-recorder]);
extraPackages =
(with ags.packages.${system}; [
tray
hyprland
apps
battery
bluetooth
mpris
network
notifd
powerprofiles
wireplumber
])
++ (with pkgs; [
fish
typescript
libnotify
dart-sass
fd
btop
bluez
libgtop
gobject-introspection
glib
bluez-tools
grimblast
brightnessctl
gnome-bluetooth
(python3.withPackages (ps:
with ps; [
gpustat
dbus-python
pygobject3
]))
matugen
hyprpicker
hyprsunset
hypridle
wireplumber
networkmanager
upower
gvfs
swww
pywal
])
++ (nixpkgs.lib.optionals (system == "x86_64-linux") [pkgs.gpu-screen-recorder]);
};
});

Expand All @@ -76,7 +80,7 @@
if [ "$#" -eq 0 ]; then
exec ${self.packages.${final.stdenv.system}.default}/bin/hyprpanel
else
exec ${astal.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$@"
exec ${ags.packages.${final.stdenv.system}.io}/bin/astal -i hyprpanel "$@"
fi
'';
};
Expand Down

0 comments on commit 2fbbdd7

Please sign in to comment.