diff --git a/nixos/home/base.nix b/nixos/home/base.nix index 100238e..58e58b1 100644 --- a/nixos/home/base.nix +++ b/nixos/home/base.nix @@ -1,5 +1,7 @@ -{ pkgs, ... }: +{ pkgs, inputs, ... }: { + nixpkgs.overlays = import ../overlays.nix; + home = { stateVersion = "24.11"; username = "rae"; diff --git a/nixos/hosts/base.nix b/nixos/hosts/base.nix index ea4b0bf..3b84315 100644 --- a/nixos/hosts/base.nix +++ b/nixos/hosts/base.nix @@ -7,15 +7,7 @@ nix.settings.experimental-features = ["nix-command" "flakes"]; nixpkgs = { config.allowUnfree = true; - overlays = [ - inputs.nur.overlays.default - inputs.fenix.overlays.default - (final: prev: { - unstable = import inputs.nixpkgs-unstable { - system = prev.system; - }; - }) - ]; + overlays = import ../overlays.nix; }; networking.networkmanager.enable = true; diff --git a/nixos/overlays.nix b/nixos/overlays.nix new file mode 100644 index 0000000..7a6b1cb --- /dev/null +++ b/nixos/overlays.nix @@ -0,0 +1,11 @@ +{ inputs, ... }: { + [ + inputs.nur.overlays.default + inputs.fenix.overlays.default + (final: prev: { + unstable = import inputs.nixpkgs-unstable { + system = prev.system; + }; + }) + ]; +}