From 436d1543dfd191193c795a3df82640b228859379 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 19 May 2023 05:40:10 -0400 Subject: [PATCH] Add grimblast through flake --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 13 ++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 50b483de..82bdf27a 100644 --- a/flake.lock +++ b/flake.lock @@ -58,6 +58,26 @@ "type": "github" } }, + "hypr-contrib": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1684479483, + "narHash": "sha256-NCkOkgR7PtkAQmYgeYd6vOzkulQjxlf+vWGUmrQu4uw=", + "owner": "hyprwm", + "repo": "contrib", + "rev": "805bedf51a2f75a2279b6fc75b3066ff21f235ee", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "contrib", + "type": "github" + } + }, "hyprland": { "inputs": { "hyprland-protocols": "hyprland-protocols", @@ -121,6 +141,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "hypr-contrib": "hypr-contrib", "hyprland": "hyprland", "nixpkgs": "nixpkgs", "stylix": "stylix" diff --git a/flake.nix b/flake.nix index dfd53673..7629c641 100644 --- a/flake.nix +++ b/flake.nix @@ -19,9 +19,16 @@ home-manager.follows = "home-manager"; }; }; + + hypr-contrib = { + url = "github:hyprwm/contrib"; + inputs = { + nixpkgs.follows = "nixpkgs"; + }; + }; }; - outputs = { self, nixpkgs, home-manager, hyprland, stylix, ... }@attrs: { + outputs = { self, nixpkgs, home-manager, hyprland, stylix, hypr-contrib, ... }@attrs: { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; @@ -40,6 +47,10 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + environment.systemPackages = [ + hypr-contrib.packages."x86_64-linux".grimblast + ]; + environment.sessionVariables = { EDITOR = "nvim"; VISUAL = "nvim";