diff --git a/flake.lock b/flake.lock index f614856..0de15fa 100644 --- a/flake.lock +++ b/flake.lock @@ -2,20 +2,38 @@ "nodes": { "ags": { "inputs": { - "nixpkgs": "nixpkgs", - "systems": "systems" + "ags": "ags_2", + "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1731591309, - "narHash": "sha256-2qL6CAoQjCJLsxpy0Ac/9pLFoItf3L9KMCSLpoJ6jSw=", + "lastModified": 1, + "narHash": "sha256-0veb/yDBkTJu1HzFZIcNcXIFaWPp+OTyWbe6aYmCWCQ=", + "path": "/nix/store/r73gq4az4lwgh699zxnhzhznjigylpbd-source/home/ags", + "type": "path" + }, + "original": { + "path": "/nix/store/r73gq4az4lwgh699zxnhzhznjigylpbd-source/home/ags", + "type": "path" + } + }, + "ags_2": { + "inputs": { + "astal": "astal", + "nixpkgs": [ + "ags", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1732307740, + "narHash": "sha256-ZDsYdZOtg5qkK/wfLLB83B3SI+fE32S+/6Ey0ggHODM=", "owner": "aylur", "repo": "ags", - "rev": "67b0e31ded361934d78bddcfc01f8c3fcf781aad", + "rev": "81159966eb8b39b66c3efc133982fd76920c9605", "type": "github" }, "original": { "owner": "aylur", - "ref": "v1", "repo": "ags", "type": "github" } @@ -53,6 +71,28 @@ "type": "github" } }, + "astal": { + "inputs": { + "nixpkgs": [ + "ags", + "ags", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1731952585, + "narHash": "sha256-Sh1E7sJd8JJM3PCU1ZOei/QWz97OLCENIi2rTRoaniw=", + "owner": "aylur", + "repo": "astal", + "rev": "664c7a4ddfcf48c6e8accd3c33bb94424b0e8609", + "type": "github" + }, + "original": { + "owner": "aylur", + "repo": "astal", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -211,7 +251,7 @@ "hyprwayland-scanner": "hyprwayland-scanner", "nixpkgs": "nixpkgs_3", "pre-commit-hooks": "pre-commit-hooks", - "systems": "systems_2", + "systems": "systems", "xdph": "xdph" }, "locked": { @@ -376,15 +416,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1725634671, - "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=", - "owner": "NixOS", + "lastModified": 1732014248, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "owner": "nixos", "repo": "nixpkgs", - "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c", + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" @@ -537,21 +577,6 @@ "type": "github" } }, - "systems_2": { - "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", - "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default-linux", - "type": "github" - } - }, "worktimer": { "inputs": { "flake-parts": "flake-parts_2", diff --git a/flake.nix b/flake.nix index 7907e1c..d8d8ef6 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ inputs.hyprland.follows = "hyprland"; }; nur.url = "github:nix-community/NUR"; - ags.url = "github:aylur/ags/v1"; + ags.url = "./home/ags"; fzgo.url = "git+https://git.thomasave.be/thomasave/fzgo.git"; worktimer = { type = "git"; diff --git a/home/ags/default.nix b/home/ags/default.nix deleted file mode 100644 index cc8356f..0000000 --- a/home/ags/default.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ inputs, config, pkgs, ... }: -{ - imports = [ inputs.ags.homeManagerModules.default ]; - home.packages = [ - pkgs.adw-gtk3 - pkgs.papirus-icon-theme - ]; - programs.ags = { - enable = true; - configDir = ./files; - extraPackages = with pkgs; [ - gtksourceview - webkitgtk - accountsservice - ]; - }; - - # home.file."${config.xdg.configHome}/ags" = { - # source = config.lib.file.mkOutOfStoreSymlink ./files; - # recursive = true; - # }; -} diff --git a/home/ags/files/Bar.tsx b/home/ags/files/Bar.tsx index c221ee4..71f1ca9 100644 --- a/home/ags/files/Bar.tsx +++ b/home/ags/files/Bar.tsx @@ -217,11 +217,7 @@ function Workspaces() : JSX.Element { {bind(hyprland, "workspaces").as((wss) => wss .sort((a, b) => a.id - b.id) - .filter( - (ws) => - ws.get_monitor().get_id() === - hyprland.get_focused_monitor().get_id(), - ) + .filter(ws => ws && ws.get_monitor().get_id() === hyprland.get_focused_monitor().get_id()) .map((ws) => (