diff options
| author | Fuwn <[email protected]> | 2024-10-02 06:53:03 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-02 06:53:03 -0700 |
| commit | f98b69547f5fdcec134965161beeccca0e3d89f5 (patch) | |
| tree | 067e433144e5aa8ad786abaef842f8c586aa72db /hosts/default.nix | |
| parent | hosts: rename fina to akashi (diff) | |
| download | nixos-config-f98b69547f5fdcec134965161beeccca0e3d89f5.tar.xz nixos-config-f98b69547f5fdcec134965161beeccca0e3d89f5.zip | |
flake: switch pia to Fuwn/nixos-pia
Diffstat (limited to 'hosts/default.nix')
| -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 = |