diff --git a/flake.lock b/flake.lock index 0d1f0c3..1a1a24f 100644 --- a/flake.lock +++ b/flake.lock @@ -327,6 +327,22 @@ "type": "github" } }, + "nixpkgs-hyprland-autoname-workspaces": { + "locked": { + "lastModified": 1686168668, + "narHash": "sha256-WjlmXyRh8PmW2zfMAitVfso06eQOAnQv8sjOZgnBXvY=", + "owner": "donovanglover", + "repo": "nixpkgs", + "rev": "c5480a8239d0a025f9198f100dd88cae5da51a9e", + "type": "github" + }, + "original": { + "owner": "donovanglover", + "ref": "hyprland-autoname-workspaces", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-lib": { "locked": { "dir": "lib", @@ -387,6 +403,7 @@ "hyprland": "hyprland", "nix-gaming": "nix-gaming", "nixpkgs": "nixpkgs", + "nixpkgs-hyprland-autoname-workspaces": "nixpkgs-hyprland-autoname-workspaces", "nixpkgs-master": "nixpkgs-master", "stylix": "stylix" } diff --git a/flake.nix b/flake.nix index 4cad571..6798e5b 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-master.url = "github:NixOS/nixpkgs/master"; + nixpkgs-hyprland-autoname-workspaces.url = "github:donovanglover/nixpkgs/hyprland-autoname-workspaces"; home-manager = { url = "github:nix-community/home-manager/master"; diff --git a/packages/hyprland-autoname-workspaces/default.nix b/packages/hyprland-autoname-workspaces/default.nix deleted file mode 100644 index 50e19a4..0000000 --- a/packages/hyprland-autoname-workspaces/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ - lib, - rustPlatform, - fetchFromGitHub, -}: -rustPlatform.buildRustPackage rec { - pname = "hyprland-autoname-workspaces"; - version = "1.0.0"; - - src = fetchFromGitHub { - owner = "hyprland-community"; - repo = pname; - rev = version; - sha256 = "sha256-+oJWPSN6VmUUpd5ZLrN5Sa9Yg6pqVlaQFSRnEkLpLt8="; - }; - - cargoSha256 = "sha256-wXQVcTQ6up34ZqJP5hDttFEqtz+hmyd1aWFnPlFvazA="; - - meta = with lib; { - description = "Automatically rename the workspaces with icons of started applications"; - homepage = "https://github.com/hyprland-community/hyprland-autoname-workspaces"; - license = licenses.isc; - maintainers = with maintainers; [donovanglover]; - }; -} diff --git a/src/main.nix b/src/main.nix index 3c6fdb7..22de736 100644 --- a/src/main.nix +++ b/src/main.nix @@ -4,6 +4,7 @@ hypr-contrib, nix-gaming, crystal-flake, + nixpkgs-hyprland-autoname-workspaces, ... }: let VARIABLES = import ./variables.nix; @@ -181,7 +182,7 @@ in { swww kickoff greetd.tuigreet - (pkgs.callPackage ../packages/hyprland-autoname-workspaces {}) + nixpkgs-hyprland-autoname-workspaces.legacyPackages.${VARIABLES.system}.hyprland-autoname-workspaces ]; nixpkgs.config.allowUnfreePredicate = pkg: