diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/default.nix | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 4aedba4..a5d3714 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -9,32 +9,36 @@ }: { flake.nixosConfigurations = with lib; { - kansai = nixosSystem { - pkgs = - (kansaiPkgs { - nixpkgsAllowUnfree = true; - nixpkgsCudaSupport = true; - })."x86_64-linux"; + kansai = + let + pkgs = + (kansaiPkgs { + nixpkgsAllowUnfree = true; + nixpkgsCudaSupport = true; + })."x86_64-linux"; + in + nixosSystem { + inherit pkgs; - specialArgs = { - inherit - inputs - outputs - secrets - self - ; - }; + specialArgs = { + inherit + inputs + outputs + secrets + self + ; + }; - modules = with inputs; [ - home-manager.nixosModule - pia.nixosModule - nix-index-database.nixosModules.nix-index - nur.nixosModules.nur - chaotic.nixosModules.default - sops-nix.nixosModules.sops - ./kansai - ]; - }; + modules = with inputs; [ + home-manager.nixosModule + pia.nixosModules.${pkgs.system}.default + nix-index-database.nixosModules.nix-index + nur.nixosModules.nur + chaotic.nixosModules.default + sops-nix.nixosModules.sops + ./kansai + ]; + }; himeji = nixosSystem { pkgs = |