hacked together some basic netboot stuff

This commit is contained in:
Rouven Seifert 2023-05-21 23:40:21 +02:00
parent fbbb68ee06
commit 8b37b0adfc
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 48 additions and 6 deletions

View file

@ -52,7 +52,7 @@
# packages.x86_64-linux.circuitjs = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/circuitjs { };
hydraJobs = self.packages;
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = {
nixosConfigurations = rec {
thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = attrs;
@ -86,6 +86,20 @@
./hosts/nuc
./shared
sops-nix.nixosModules.sops
# hacking this into here since it somehow doesnt' work as module
{
services.pixiecore = rec {
enable = true;
port = 64172;
statusPort = port;
openFirewall = true;
kernel = "${netboot.config.system.build.kernel}/bzImage";
initrd = "${netboot.config.system.build.netbootRamdisk}/initrd";
cmdLine = "init=${netboot.config.system.build.toplevel}/init loglevel=4";
};
}
];
};
falkenstein-1 = nixpkgs.lib.nixosSystem {
@ -119,6 +133,15 @@
./shared/vim.nix
];
};
netboot = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = attrs;
modules = [
./hosts/netboot
./shared/caches.nix
./shared/vim.nix
];
};
};
};
}