Skip to content

Commit

Permalink
Merge pull request #4 from Openmesh-Network/feature/initial-kexec-sup…
Browse files Browse the repository at this point in the history
…port

Feature/initial kexec support
  • Loading branch information
jaesharp authored Jun 6, 2024
2 parents 738332e + 0b76a20 commit ff3c8c3
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ iso:

netboot:
nix build --extra-experimental-features nix-command --extra-experimental-features flakes -L --print-out-paths --show-trace '.#netboot'

kexec:
nix build --extra-experimental-features nix-command --extra-experimental-features flakes -L --print-out-paths --show-trace '.#kexec'
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
x86_64-linux = {
iso = import ./systems/iso.nix flakeContext;
netboot = import ./systems/netboot.nix flakeContext;
kexec = import ./systems/kexec.nix flakeContext;
};
};
};
Expand Down
57 changes: 57 additions & 0 deletions systems/kexec.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{ inputs, ... }@flakeContext:
let
kexec = { config, lib, pkgs, ... }: {
imports = [
../repo/modules/services/openmesh/xnode/admin.nix
];
config = {
documentation = {
nixos = {
enable = false;
};
doc = {
enable = false;
};
};
services = {
openmesh = {
xnode = {
admin = {
enable = true;
};
};
};
getty = {
greetingLine = ''<<< Welcome to Openmesh XnodeOS ${config.system.nixos.label} (\m) - \l >>>'';
};
};
environment = {
systemPackages = with pkgs; [
nyancat
];
};
kexec = {
squashfsCompression = "gzip -Xcompression-level 1";
};
networking = {
hostName = "xnode";
};
users = {
users = {
xnode = {
isNormalUser = true;
password = "xnode";
extraGroups = [ "wheel" ];
};
};
};
};
};
in
inputs.nixos-generators.nixosGenerate {
system = "x86_64-linux";
format = "kexec";
modules = [
kexec
];
}

0 comments on commit ff3c8c3

Please sign in to comment.