perhaps ready for prod
This commit is contained in:
1 parent
dbdd9034c9
commit
815e1b08c8
2 files changed
+28
-24
No files matched your search
@@ -9,29 +9,34 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, nixos-generators }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
python = pkgs.python312.withPackages (ps: [ ps.click ]);
|
||||
gcp = nixos-generators.nixosGenerate {
|
||||
system = "x86_64-linux";
|
||||
outputs = { self, nixpkgs, flake-utils, nixos-generators }@inputs:
|
||||
let
|
||||
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;
|
||||
};
|
||||
|
||||
modules = [ ./gcp-configuration.nix ];
|
||||
format = "vm";
|
||||
trainer = nixpkgs.lib.nixosSystem {
|
||||
modules = [ (import ./gcp-configuration.nix) ];
|
||||
specialArgs = inputs;
|
||||
};
|
||||
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
lib = nixpkgs.legacyPackages.x86_64-linux.lib;
|
||||
};
|
||||
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"
|
||||
'';
|
||||
};
|
||||
});
|
||||
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; };
|
||||
}
|
||||
@@ -60,6 +60,5 @@
|
||||
services.openssh.settings.PasswordAuthentication = false;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user