fixed flake

This commit is contained in:
didier committed 2024-10-28 04:59:53 -04:00
1 parent 815e1b08c8
commit 00d6ec0534
1 file changed
+4 -2
+4 -2
View File
@@ -20,16 +20,19 @@
};
trainer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ (import ./gcp-configuration.nix) ];
specialArgs = inputs;
};
utils = flake-utils.lib.eachDefaultSystem (system:
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python312.withPackages (ps: [ ps.click ]);
in {
packages.gcp = gcp;
packages.nixosConfigurations.localhost = trainer;
packages.nixosConfigurations.trainer-0001 = trainer;
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.google-cloud-sdk python ];
shellHook = ''
@@ -38,5 +41,4 @@
'';
};
});
in utils // { trainer-001 = trainer; };
}