...with some basic optional persistence and without having to rebuild images for every app nix run -f . pkgs.uvms -- --persist-home librewolf alacritty --run librewolf --run alacritty
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
let
|
|
uvmsPkgs = pkgs.callPackage ../pkgs { };
|
|
in
|
|
{
|
|
imports = [
|
|
../profiles/ch-runner.nix
|
|
../profiles/baseImage.nix
|
|
(modulesPath + "/profiles/minimal.nix")
|
|
];
|
|
|
|
system.stateVersion = "25.11";
|
|
|
|
networking.hostName = "dummy";
|
|
|
|
vmapps.enable = true;
|
|
_module.args.inputs = import ../npins;
|
|
|
|
# boot.isContainer = true;
|
|
boot.loader.grub.enable = false;
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
boot.initrd.systemd.settings.Manager.DefaultTimeoutStartSec = 5;
|
|
systemd.settings.Manager.DefaultTimeoutStopSec = 10;
|
|
|
|
uvms.cloud-hypervisor.enable = true;
|
|
|
|
systemd.services."suid-sgid-wrappers".serviceConfig = {
|
|
StandardOutput = "journal+console";
|
|
StandardError = "journal+console";
|
|
};
|
|
|
|
systemd.services."terminal" = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
wants = [ "wayland-proxy.service" ];
|
|
after = [ "wayland-proxy.service" ];
|
|
serviceConfig = {
|
|
User = "user";
|
|
WorkingDirectory = "/home/user";
|
|
ExecStart = lib.getExe pkgs.alacritty;
|
|
StandardOutput = "journal+console";
|
|
StandardError = "journal+console";
|
|
};
|
|
};
|
|
|
|
# TODO: cmdline, kernel, initrd, fileSystems
|
|
}
|