From af6a429c18ea2d64f888d1196fff01e58ae85c87 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 23 Jun 2024 18:02:55 -0400 Subject: [PATCH] flake: add nur for declarative firefox extensions --- flake.lock | 18 +++++++++++++++++- flake.nix | 4 ++++ nixosModules/base/nixpkgs/default.nix | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 25ecf61e..612cbe8e 100644 --- a/flake.lock +++ b/flake.lock @@ -548,6 +548,21 @@ "type": "github" } }, + "nur": { + "locked": { + "lastModified": 1719160963, + "narHash": "sha256-hm2XunlO5oD0xh9Z0r1kIQj8UEt1vYeyyFlieN8hkHI=", + "owner": "nix-community", + "repo": "NUR", + "rev": "72137385988d41b40f749b9203f9ba831f4fbe04", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -557,7 +572,8 @@ "iio-hyprland": "iio-hyprland", "nixpkgs": "nixpkgs_2", "nixpkgsUnstable": "nixpkgsUnstable", - "nixvim": "nixvim" + "nixvim": "nixvim", + "nur": "nur" } }, "systems": { diff --git a/flake.nix b/flake.nix index b5fc4e40..b058aad7 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,8 @@ url = "github:nix-community/nixvim/nixos-24.05"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nur.url = github:nix-community/NUR; }; nixConfig = { @@ -108,6 +110,7 @@ inputs.disko.nixosModules.disko inputs.hyprland.nixosModules.default inputs.nixvim.nixosModules.nixvim + inputs.nur.nixosModules.nur inputs.home-manager.nixosModules.home-manager self.nixosModules.default { @@ -118,6 +121,7 @@ inputs.agenix.homeManagerModules.default inputs.hyprland.homeManagerModules.default inputs.nixvim.homeManagerModules.nixvim + inputs.nur.hmModules.nur self.homeManagerModules.default ]; diff --git a/nixosModules/base/nixpkgs/default.nix b/nixosModules/base/nixpkgs/default.nix index 1afdbd33..d6f4c8a9 100644 --- a/nixosModules/base/nixpkgs/default.nix +++ b/nixosModules/base/nixpkgs/default.nix @@ -16,6 +16,7 @@ # Overlays over default packages. overlays = [ + inputs.nur.overlay (final: prev: { audiobookshelf = unstable.audiobookshelf; brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};