diff --git a/flake.nix b/flake.nix index 2f06d27..c82df56 100644 --- a/flake.nix +++ b/flake.nix @@ -10,10 +10,21 @@ , nixpkgs , home-manager , ... - } @inputs: { + } @inputs: + let + overlays = [ + (import (builtins.fetchTarball { + url = https://github.com/nix-community/emacs-overlay/archive/0fe268a3b03ab9ef7a77363c64247030ee3902a7.tar.gz; + sha256 = "sha256:05cxwj5xnw9kci75pgzd3kff9k3548fsc0x8y0s08jzcidai139f"; + })) + ]; + in { nixosConfigurations.falcon = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ + ({ config, pkgs, ... }: { + nixpkgs.overlays = overlays; + }) ./hosts/falcon home-manager.nixosModules.home-manager @@ -28,12 +39,7 @@ system = "x86_64-linux"; modules = [ ({ config, pkgs, ... }: { - nixpkgs.overlays = [ - (import (builtins.fetchTarball { - url = https://github.com/nix-community/emacs-overlay/archive/0fe268a3b03ab9ef7a77363c64247030ee3902a7.tar.gz; - sha256 = "sha256:05cxwj5xnw9kci75pgzd3kff9k3548fsc0x8y0s08jzcidai139f"; - })) - ]; + nixpkgs.overlays = overlays; }) ./hosts/eagle