perhaps ready for prod

This commit is contained in:
didier committed 2024-10-27 09:21:31 -04:00
1 parent dbdd9034c9
commit 815e1b08c8
2 files changed
+12 -8

No files matched your search

+12 -7
View File
@@ -9,22 +9,26 @@
};
};
outputs = { self, nixpkgs, flake-utils, nixos-generators }:
flake-utils.lib.eachDefaultSystem (system:
outputs = { self, nixpkgs, flake-utils, nixos-generators }@inputs:
let
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python312.withPackages (ps: [ ps.click ]);
gcp = nixos-generators.nixosGenerate {
system = "x86_64-linux";
modules = [ ./gcp-configuration.nix ];
format = "vm";
pkgs = nixpkgs.legacyPackages.x86_64-linux;
lib = nixpkgs.legacyPackages.x86_64-linux.lib;
};
in {
trainer = nixpkgs.lib.nixosSystem {
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 ];
@@ -34,4 +38,5 @@
'';
};
});
in utils // { trainer-001 = trainer; };
}
-1
View File
@@ -60,6 +60,5 @@
services.openssh.settings.PasswordAuthentication = false;
programs.zsh.enable = true;
};
}