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
+28 -24

No files matched your search

+28 -23
View File
@@ -9,29 +9,34 @@
}; };
}; };
outputs = { self, nixpkgs, flake-utils, nixos-generators }: outputs = { self, nixpkgs, flake-utils, nixos-generators }@inputs:
flake-utils.lib.eachDefaultSystem (system: let
let gcp = nixos-generators.nixosGenerate {
pkgs = nixpkgs.legacyPackages.${system}; system = "x86_64-linux";
python = pkgs.python312.withPackages (ps: [ ps.click ]); modules = [ ./gcp-configuration.nix ];
gcp = nixos-generators.nixosGenerate { format = "vm";
system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.x86_64-linux;
lib = nixpkgs.legacyPackages.x86_64-linux.lib;
};
modules = [ ./gcp-configuration.nix ]; trainer = nixpkgs.lib.nixosSystem {
format = "vm"; modules = [ (import ./gcp-configuration.nix) ];
specialArgs = inputs;
};
pkgs = nixpkgs.legacyPackages.x86_64-linux; utils = flake-utils.lib.eachDefaultSystem (system:
lib = nixpkgs.legacyPackages.x86_64-linux.lib; let
}; pkgs = nixpkgs.legacyPackages.${system};
in { python = pkgs.python312.withPackages (ps: [ ps.click ]);
in {
packages.gcp = gcp; packages.gcp = gcp;
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.google-cloud-sdk python ]; buildInputs = [ pkgs.google-cloud-sdk python ];
shellHook = '' shellHook = ''
export PROJECT_ID="all-dressed-programming" export PROJECT_ID="all-dressed-programming"
export BUCKET_NAME="nautilus-plus" export BUCKET_NAME="nautilus-plus"
''; '';
}; };
}); });
in utils // { trainer-001 = trainer; };
} }
-1
View File
@@ -60,6 +60,5 @@
services.openssh.settings.PasswordAuthentication = false; services.openssh.settings.PasswordAuthentication = false;
programs.zsh.enable = true; programs.zsh.enable = true;
}; };
} }