add NUR Repository

This commit is contained in:
Kabbone 2022-11-01 21:31:56 +01:00
parent cd4cccf5bd
commit ce996ad6b0
3 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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; };

View File

@ -24,7 +24,7 @@
packages = with pkgs; [
# Applications
libreoffice # Office packages
firefox
#firefox
chromium
thunderbird
streamlink-twitch-gui-bin