hackens-org-configurations/machines/hackens-milieu/pixiecore/default.nix

20 lines
563 B
Nix
Raw Normal View History

2024-10-02 13:43:17 +02:00
{ pkgs, config, ... }:
let
net-config = (import (pkgs.path + "/nixos/lib/eval-config.nix") {
system = "x86_64-linux";
modules = [
./net-config.nix
{ users.users.root.openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles; }
];
}).config.system.build;
in
{
services.pixiecore = {
enable = true;
openFirewall = true;
kernel = "${net-config.kernel}/bzImage";
initrd = "${net-config.netbootRamdisk}/initrd";
cmdLine = "init=${net-config.toplevel}/init loglevel=4";
};
}