diff --git a/configuration.nix b/configuration.nix index 2f6aa94..8fa40e6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, outputs, config, ... }: { +{ pkgs, config, ... }: { imports = [ ./hardware-configuration.nix @@ -116,27 +116,4 @@ setSocketVariable = true; }; }; - - nixpkgs = { - # You can add overlays here - overlays = [ - # Add overlays your own flake exports (from overlays and pkgs dir): - outputs.overlays.nurPackages - - # You can also add overlays exported from other flakes: - # neovim-nightly-overlay.overlays.default - - # Or define it inline, for example: - # (final: prev: { - # hi = final.hello.overrideAttrs (oldAttrs: { - # patches = [ ./change-hello-to-hi.patch ]; - # }); - # }) - ]; - # Configure your nixpkgs instance - config = { - # Disable if you don't want unfree packages - allowUnfree = true; - }; - }; } diff --git a/flake.nix b/flake.nix index 889f370..ee90a68 100644 --- a/flake.nix +++ b/flake.nix @@ -24,15 +24,14 @@ inherit (self) outputs; in { - overlays = { nurPackages = nur.overlay; }; nixosConfigurations.pim = nixpkgs.lib.nixosSystem { specialArgs = { inherit outputs; }; system = "x86_64-linux"; modules = [ + { nixpkgs.overlays = [ nur.overlay ]; } ./configuration.nix agenix.nixosModules.default home-manager.nixosModules.home-manager { - home-manager.extraSpecialArgs = { inherit nur; }; home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.pim = {