NixOS deployment for LinuxLab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
638 B

2 weeks ago
  1. { pkgs, lib, nodes, ... }:
  2. with lib;
  3. let
  4. installer = pkgs.nixos [
  5. ./installer
  6. {
  7. _module.args = {
  8. target = nodes."client";
  9. };
  10. }
  11. ];
  12. in
  13. {
  14. services.pixiecore = {
  15. enable = true;
  16. dhcpNoBind = true;
  17. port = 5080;
  18. mode = "boot";
  19. kernel = "file://${installer.config.system.build.kernel}/bzImage";
  20. initrd = "file://${installer.config.system.build.netbootRamdisk}/initrd";
  21. cmdLine = concatStringsSep " " [
  22. "init=${installer.config.system.build.toplevel}/init"
  23. "loglevel=4"
  24. "console=tty0"
  25. "console=ttyS1,57600n8"
  26. ];
  27. openFirewall = true;
  28. };
  29. }