diff options
| author | Fuwn <[email protected]> | 2024-10-03 00:20:27 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-03 00:20:27 -0700 |
| commit | 94b1faacfb5b291d60bd6bbb1da2a1511d9817ff (patch) | |
| tree | f67bde112c87e992e2506e7921a55265cbaec3b8 /hosts/default.nix | |
| parent | fastfetch: fix logo width (diff) | |
| download | nixos-config-94b1faacfb5b291d60bd6bbb1da2a1511d9817ff.tar.xz nixos-config-94b1faacfb5b291d60bd6bbb1da2a1511d9817ff.zip | |
akashi: fix up
Diffstat (limited to 'hosts/default.nix')
| -rw-r--r-- | hosts/default.nix | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index e30102a..9b45eaf 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -13,9 +13,14 @@ let sops-nix.nixosModules.sops ]; - pcModules = [ - inputs.nix-gaming.nixosModules.pipewireLowLatency - ]; + pcModules = + system: + with inputs; + [ + nix-gaming.nixosModules.pipewireLowLatency + pia.nixosModules.${system}.default + ] + ++ defaultModules; in { flake.nixosConfigurations = with lib; { @@ -43,13 +48,11 @@ in with inputs; [ home-manager.nixosModule - pia.nixosModules.${pkgs.system}.default nur.nixosModules.nur chaotic.nixosModules.default ./kansai ] - ++ defaultModules - ++ pcModules; + ++ pcModules pkgs.system; }; himeji = nixosSystem { @@ -74,22 +77,26 @@ in ] ++ defaultModules; }; - akashi = nixosSystem { - modules = [ ./akashi ] ++ defaultModules ++ pcModules; + akashi = + let + pkgs = + (kansaiPkgs { + nixpkgsAllowUnfree = true; + })."x86_64-linux"; + in + nixosSystem { + inherit pkgs; - pkgs = - (kansaiPkgs { - nixpkgsAllowUnfree = true; - })."x86_64-linux"; + modules = [ ./akashi ] ++ pcModules pkgs.system; - specialArgs = { - inherit - inputs - outputs - secrets - self - ; + specialArgs = { + inherit + inputs + outputs + secrets + self + ; + }; }; - }; }; } |