nerf/defaultRoles #12

Merged
nerf merged 10 commits from nerf/nixConfig:nerf/defaultRoles into main 2023-10-05 21:15:32 +00:00
Showing only changes of commit 16fee6f1f9 - Show all commits

15
nixos/roles/xen_guest.nix Normal file
View file

@ -0,0 +1,15 @@
{...}: {
Gonne marked this conversation as resolved Outdated
Outdated
Review

How does this file compare to the Xen-DomU config?

How does this file compare to the [Xen-DomU](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/virtualisation/xen-domU.nix) config?
Outdated
Review

Ahh I was not aware of that, it is probably better to just load that file (even if we don't need some of the kernel modules that early).
(It doesn't really hurt).

But it does change logging behavior in a (I think) sensible way. But I'm unsure if we are prepared for that. Do we do anything
with the Xen console logs?

Ahh I was not aware of that, it is probably better to just load that file (even if we don't need some of the kernel modules that early). (It doesn't really hurt). But it does change logging behavior in a (I think) sensible way. But I'm unsure if we are prepared for that. Do we do anything with the Xen console logs?
Outdated
Review

We currently don't log Xen console logs as far as I know, but I'd like to be closer to this file. Maybe log both to console and to disk until we collect the console log?

We currently don't log Xen console logs as far as I know, but I'd like to be closer to this file. Maybe log both to console and to disk until we collect the console log?
Outdated
Review

Ahh that probably doesn't even change anything because we log on that machines using journald and not syslogd. (We could, and journald has an option to forward logs to syslog). But for now it doesn't change anything (it would though the moment we decide to you syslog)

Ahh that probably doesn't even change anything because we log on that machines using journald and not syslogd. (We could, and journald has an option to forward logs to syslog). But for now it doesn't change anything (it would though the moment we decide to you syslog)
imports = [ ];
boot = {
loader.grub = {
device = "nodev";
enable = true;
};
initrd = {
availableKernelModules = [ "ata_piix" "sr_mod" "xen_blkfront" ];
kernelModules = [ ];
};
extraModulePackages = [ ];
};
}