Remote deployment configuration
This commit is contained in:
parent
1bdc118dc7
commit
429efc52ae
4 changed files with 35 additions and 6 deletions
27
flake.nix
27
flake.nix
|
|
@ -119,6 +119,7 @@
|
|||
|
||||
./nixos_modules/bertof_user.nix
|
||||
./nixos_modules/distributed.nix
|
||||
./nixos_modules/remote-deploy.nix
|
||||
./nixos_modules/extended_registry.nix
|
||||
./nixos_modules/automatic-garbage-collection.nix
|
||||
./nixos_modules/automatic-upgrade.nix
|
||||
|
|
@ -251,20 +252,40 @@
|
|||
};
|
||||
};
|
||||
|
||||
images = with flake-utils.lib; eachSystem [ system.x86_64-linux system.aarch64-linux ] (system:
|
||||
images = with flake-utils.lib; let
|
||||
installerModules = [
|
||||
# Nix configuration
|
||||
{
|
||||
nixpkgs = { inherit overlays config; };
|
||||
nix = {
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
registry = {
|
||||
stable = { from = { id = "stable"; type = "indirect"; }; flake = nixpkgs; };
|
||||
unstable = { from = { id = "unstable"; type = "indirect"; }; flake = nixpkgs-u; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
./nixos_modules/bertof_user.nix
|
||||
./nixos_modules/distributed.nix
|
||||
./nixos_modules/extended_registry.nix
|
||||
./nixos_modules/zerotier.nix
|
||||
];
|
||||
in
|
||||
eachSystem [ system.x86_64-linux system.aarch64-linux ] (system:
|
||||
{
|
||||
packages = {
|
||||
# Installer ISO
|
||||
install-iso = nixos-generators.nixosGenerate {
|
||||
inherit system;
|
||||
modules = commonModules ++ [ ./nixos_modules/installer.nix ];
|
||||
modules = installerModules ++ [ ./nixos_modules/installer.nix ];
|
||||
format = "install-iso";
|
||||
};
|
||||
|
||||
# Installer DigitalOcean
|
||||
do = nixos-generators.nixosGenerate {
|
||||
inherit system;
|
||||
modules = commonModules ++ [ ./nixos_modules/installer.nix ];
|
||||
modules = installerModules ++ [ ./nixos_modules/installer.nix ];
|
||||
format = "do";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue