From ce996ad6b0e1048f30be098ecbab78376c70b0d8 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Tue, 1 Nov 2022 21:31:56 +0100 Subject: [PATCH] add NUR Repository --- hosts/configuration.nix | 5 +++++ hosts/default.nix | 6 +++++- hosts/laptop/home.nix | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index b82dc34..4a04f1a 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -152,6 +152,11 @@ ''; }; nixpkgs.config.allowUnfree = true; # Allow proprietary software. + nixpkgs.config.packageOverrides = pkgs: { + nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { + inherit pkgs; + }; + }; system = { # NixOS settings autoUpgrade = { # Allow auto update diff --git a/hosts/default.nix b/hosts/default.nix index 7f189a6..63e8a53 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -22,6 +22,7 @@ let }; lib = nixpkgs.lib; + in { desktop = lib.nixosSystem { # Desktop profile @@ -46,7 +47,7 @@ in laptop = lib.nixosSystem { # Laptop profile inherit system; - specialArgs = { inherit inputs user location hyprland nixos-hardware; }; + specialArgs = { inherit inputs user location hyprland nixos-hardware nur; }; modules = [ nur.nixosModules.nur hyprland.nixosModules.default @@ -55,6 +56,9 @@ in nixos-hardware.nixosModules.common-cpu-intel home-manager.nixosModules.home-manager { + nixpkgs.overlays = [ + nur.overlay + ]; home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { inherit user; }; diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 47e7ed2..e96abe7 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -24,7 +24,7 @@ packages = with pkgs; [ # Applications libreoffice # Office packages - firefox + #firefox chromium thunderbird streamlink-twitch-gui-bin