Move installerModules to top
This commit is contained in:
parent
5956d8480a
commit
32ffdec22d
1 changed files with 23 additions and 23 deletions
46
flake.nix
46
flake.nix
|
|
@ -125,6 +125,26 @@
|
||||||
./nixos_modules/zerotier.nix
|
./nixos_modules/zerotier.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
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
|
||||||
|
./nixos_modules/installer.nix
|
||||||
|
];
|
||||||
|
|
||||||
thorConfig = {
|
thorConfig = {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
thor = nixpkgs.lib.nixosSystem rec {
|
thor = nixpkgs.lib.nixosSystem rec {
|
||||||
|
|
@ -250,40 +270,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
images = with flake-utils.lib; let
|
images = with flake-utils.lib; eachSystem [ system.x86_64-linux system.aarch64-linux ] (system:
|
||||||
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 = {
|
packages = {
|
||||||
# Installer ISO
|
# Installer ISO
|
||||||
install-iso = nixos-generators.nixosGenerate {
|
install-iso = nixos-generators.nixosGenerate {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = installerModules ++ [ ./nixos_modules/installer.nix ];
|
modules = installerModules;
|
||||||
format = "install-iso";
|
format = "install-iso";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Installer DigitalOcean
|
# Installer DigitalOcean
|
||||||
do = nixos-generators.nixosGenerate {
|
do = nixos-generators.nixosGenerate {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = installerModules ++ [ ./nixos_modules/installer.nix ];
|
modules = installerModules;
|
||||||
format = "do";
|
format = "do";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue