From 35392f6785096c5e419a5868d5578a090d2bc8b9 Mon Sep 17 00:00:00 2001 From: roxwize Date: Wed, 1 Jan 2025 17:29:54 -0500 Subject: [PATCH] ~ --- nixos/home/base.nix | 4 +++- nixos/hosts/base.nix | 10 +--------- nixos/overlays.nix | 11 +++++++++++ 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 nixos/overlays.nix 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; + }; + }) + ]; +}