diff --git a/flake.nix b/flake.nix index 1edcb80..31d02c1 100644 --- a/flake.nix +++ b/flake.nix @@ -27,9 +27,6 @@ }; stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs { system = v; }) systems; unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable { system = v; }) systems; - - #pkgs = nixpkgs.legacyPackages.${system}; - #unstable = nixpkgs-unstable.legacyPackages.${system}; in { nixosConfigurations = { @@ -43,13 +40,13 @@ ]; }; vaniville = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs; }; + system = systems.x86_64; + specialArgs = { inherit inputs stable_pkgs unstable_pkgs; }; modules = [ ./hosts/vaniville/configuration.nix inputs.home-manager.nixosModules.default ]; }; - - }; + }; }; } diff --git a/hosts/vaniville/configuration.nix b/hosts/vaniville/configuration.nix index 8c69e68..1b40b53 100644 --- a/hosts/vaniville/configuration.nix +++ b/hosts/vaniville/configuration.nix @@ -1,5 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, stable_pkgs, unstable_pkgs, ... }: +let + pkgs = stable_pkgs.x86_64; + unstable = unstable_pkgs.x86_64; +in { imports = [ # Include the results of the hardware scan.