fixed flake
This commit is contained in:
1 parent
815e1b08c8
commit
00d6ec0534
1 file changed
+17
-15
@@ -20,23 +20,25 @@
|
||||
};
|
||||
|
||||
trainer = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ (import ./gcp-configuration.nix) ];
|
||||
specialArgs = inputs;
|
||||
};
|
||||
|
||||
utils = flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
python = pkgs.python312.withPackages (ps: [ ps.click ]);
|
||||
in {
|
||||
packages.gcp = gcp;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = [ pkgs.google-cloud-sdk python ];
|
||||
shellHook = ''
|
||||
export PROJECT_ID="all-dressed-programming"
|
||||
export BUCKET_NAME="nautilus-plus"
|
||||
'';
|
||||
};
|
||||
});
|
||||
in utils // { trainer-001 = trainer; };
|
||||
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 = ''
|
||||
export PROJECT_ID="all-dressed-programming"
|
||||
export BUCKET_NAME="nautilus-plus"
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user