From 8128b0a488a910c1b1b1cbd69ed38466eff11b08 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:33:42 +0400 Subject: [PATCH] ags flake --- flake.nix | 5 +++++ modules/desktop/hyprland/default.nix | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 327a1eda..c590b5e9 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,10 @@ url = "github:nix-community/emacs-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; + ags = { + url = "github:Aylur/ags"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { @@ -34,6 +38,7 @@ NixOS-WSL, sops-nix, emacs-overlay, + ags, ... } @ inputs: let inherit (self) outputs; diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix index bd35c5a9..16c0814b 100644 --- a/modules/desktop/hyprland/default.nix +++ b/modules/desktop/hyprland/default.nix @@ -121,10 +121,7 @@ in # thanks PartyWumpus # https://github.com/PartyWumpus/dotfiles/blob/277949d84d53a58a3f52be935cd3c581c89d5d7c/modules/hyprland/hyprland.nix#L492 "/etc/nixos/config/ags/types" = { - source = pkgs.runCommand "types" {} '' - ${pkgs.ags}/bin/ags --init - mv types $out - ''; + source = "${inputs.ags.packages.x86_64-linux.agsWithTypes.out}/share/com.github.Aylur.ags/types"; }; }; xdg.configFile = {