feat(pixiecore): use netboot.xyz
This commit is contained in:
parent
fecddb1f77
commit
da09ce104a
2 changed files with 8 additions and 53 deletions
|
@ -1,19 +1,16 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
net-config = (import (pkgs.path + "/nixos/lib/eval-config.nix") {
|
netboot_efi = pkgs.fetchurl rec {
|
||||||
system = "x86_64-linux";
|
version = "2.0.82";
|
||||||
modules = [
|
url = "https://github.com/netbootxyz/netboot.xyz/releases/download/${version}/netboot.xyz.efi";
|
||||||
./net-config.nix
|
hash = "sha256-cO8MCkroQ0s/j8wnwwIWfnxEvChLeOZw+gD4wrYBAog=";
|
||||||
{ users.users.root.openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles; }
|
};
|
||||||
];
|
|
||||||
}).config.system.build;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.pixiecore = {
|
services.pixiecore = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
kernel = "${net-config.kernel}/bzImage";
|
kernel = "${netboot_efi}";
|
||||||
initrd = "${net-config.netbootRamdisk}/initrd";
|
extraArguments = [ "-d" "--ipxe-efi64" "${kernel}" ];
|
||||||
cmdLine = "init=${net-config.toplevel}/init loglevel=4";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
{ pkgs, config, lib, modulesPath, ... }: {
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/installer/netboot/netboot-base.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.tmp.useTmpfs = true;
|
|
||||||
time.timeZone = "Europe/Paris";
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
console = {
|
|
||||||
font = "Lat2-Terminus16";
|
|
||||||
keyMap = "fr";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
|
||||||
getty.autologinUser = lib.mkForce "root";
|
|
||||||
openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PermitRootLogin = "yes";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
nixPath = [
|
|
||||||
"nixpkgs=${builtins.storePath pkgs.path}"
|
|
||||||
"nixos=${builtins.storePath pkgs.path}"
|
|
||||||
];
|
|
||||||
channel.enable = false;
|
|
||||||
settings.nix-path = config.nix.nixPath;
|
|
||||||
package = pkgs.lix;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "hackens-net-image";
|
|
||||||
firewall.enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
|
||||||
}
|
|
Loading…
Reference in a new issue