move nur overlay to flake.nix

This commit is contained in:
Pim Kunis 2023-10-19 09:36:43 +02:00
parent 1341c0520b
commit ed5ed796df
2 changed files with 2 additions and 26 deletions

View file

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

View file

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