disable installer channel in a single place
This commit is contained in:
parent
b7719bef5d
commit
73c9e5e338
2 changed files with 6 additions and 9 deletions
12
flake.nix
12
flake.nix
|
@ -21,7 +21,7 @@
|
||||||
let
|
let
|
||||||
netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") { }).netboot.${system};
|
netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") { }).netboot.${system};
|
||||||
kexec-installer = nixpkgs: modules: (nixpkgs.legacyPackages.${system}.nixos (modules ++ [ self.nixosModules.kexec-installer ])).config.system.build.kexecTarball;
|
kexec-installer = nixpkgs: modules: (nixpkgs.legacyPackages.${system}.nixos (modules ++ [ self.nixosModules.kexec-installer ])).config.system.build.kexecTarball;
|
||||||
netboot-installer = nixpkgs: modules: (nixpkgs.legacyPackages.${system}.nixos (modules ++ [ self.nixosModules.netboot-installer ])).config.system.build.netboot;
|
netboot-installer = nixpkgs: (nixpkgs.legacyPackages.${system}.nixos [ self.nixosModules.netboot-installer ]).config.system.build.netboot;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
netboot-nixos-unstable = netboot nixos-unstable;
|
netboot-nixos-unstable = netboot nixos-unstable;
|
||||||
|
@ -32,24 +32,18 @@
|
||||||
kexec-installer-nixos-unstable-noninteractive = kexec-installer nixos-unstable [
|
kexec-installer-nixos-unstable-noninteractive = kexec-installer nixos-unstable [
|
||||||
{
|
{
|
||||||
system.kexec-installer.name = "nixos-kexec-installer-noninteractive";
|
system.kexec-installer.name = "nixos-kexec-installer-noninteractive";
|
||||||
system.installer.channel.enable = false;
|
|
||||||
}
|
}
|
||||||
self.nixosModules.noninteractive
|
self.nixosModules.noninteractive
|
||||||
];
|
];
|
||||||
kexec-installer-nixos-2311-noninteractive = kexec-installer nixos-2311 [
|
kexec-installer-nixos-2311-noninteractive = kexec-installer nixos-2311 [
|
||||||
{
|
{
|
||||||
system.kexec-installer.name = "nixos-kexec-installer-noninteractive";
|
system.kexec-installer.name = "nixos-kexec-installer-noninteractive";
|
||||||
system.installer.channel.enable = false;
|
|
||||||
}
|
}
|
||||||
self.nixosModules.noninteractive
|
self.nixosModules.noninteractive
|
||||||
];
|
];
|
||||||
|
|
||||||
netboot-installer-nixos-unstable = netboot-installer nixos-unstable [
|
netboot-installer-nixos-unstable = netboot-installer nixos-unstable;
|
||||||
{ system.installer.channel.enable = false; }
|
netboot-installer-nixos-2311 = netboot-installer nixos-2311;
|
||||||
];
|
|
||||||
netboot-installer-nixos-2311 = netboot-installer nixos-2311 [
|
|
||||||
{ system.installer.channel.enable = false; }
|
|
||||||
];
|
|
||||||
});
|
});
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
kexec-installer = ./nix/kexec-installer/module.nix;
|
kexec-installer = ./nix/kexec-installer/module.nix;
|
||||||
|
|
|
@ -27,6 +27,9 @@
|
||||||
./nix-settings.nix
|
./nix-settings.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Don't add nixpkgs to the image to save space, for our intended use case we don't need it
|
||||||
|
system.installer.channel.enable = false;
|
||||||
|
|
||||||
systemd.services.log-network-status = {
|
systemd.services.log-network-status = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
# No point in restarting this. We just need this after boot
|
# No point in restarting this. We just need this after boot
|
||||||
|
|
Loading…
Reference in a new issue