uvms: churn
This commit is contained in:
parent
cf95fd33b0
commit
add1c4f6bd
7 changed files with 143 additions and 80 deletions
|
|
@ -42,7 +42,7 @@ in
|
|||
_module.args.uvmsPkgs = lib.mkDefault (pkgs.callPackage ../pkgs { });
|
||||
# some.failure-handler.enable = true;
|
||||
hardware.graphics.enable = true;
|
||||
boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor uvmsPkgs.linux-uvm;
|
||||
# boot.isContainer = true;
|
||||
boot.initrd.kernelModules = [
|
||||
"drm"
|
||||
|
|
@ -251,19 +251,20 @@ in
|
|||
};
|
||||
|
||||
systemd.sockets."uvms-guest" = {
|
||||
wantedBy = [ "default.target" ];
|
||||
requiredBy = [ "multi-user.target" ];
|
||||
before = [ "multi-user.target" ];
|
||||
listenStreams = [
|
||||
"vsock::24601"
|
||||
];
|
||||
partOf = [ "uvms-guest.service" ];
|
||||
};
|
||||
systemd.services."uvms-guest" = {
|
||||
requiredBy = [ "multi-user.target" ];
|
||||
before = [ "multi-user.target" ];
|
||||
onFailure = [ "shutdown.service" ];
|
||||
serviceConfig = {
|
||||
User = "user";
|
||||
Group = "users";
|
||||
ExecStart = "${lib.getExe uvmsPkgs.uvms-guest}";
|
||||
ExecStart = "${lib.getExe' uvmsPkgs.uvmslib "uvms-guest"}";
|
||||
ExecStop = [
|
||||
"/run/current-system/sw/bin/echo GUEST DOWN"
|
||||
"/run/current-system/sw/bin/systemctl poweroff"
|
||||
|
|
@ -288,7 +289,6 @@ in
|
|||
"console=ttyS0"
|
||||
"reboot=t"
|
||||
"panic=-1"
|
||||
"io.systemd.credential:vmm.notify_socket=vsock-stream:2:8888"
|
||||
# "rootfstype=virtiofs"
|
||||
# "root=rootstore"
|
||||
];
|
||||
|
|
@ -390,7 +390,7 @@ in
|
|||
options = {
|
||||
size = mkOption {
|
||||
type = types.int;
|
||||
default = 2 * 1024 * 1048576;
|
||||
default = 4 * 1024 * 1048576;
|
||||
};
|
||||
shared = mkOption {
|
||||
type = types.bool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue