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