uvms/examples/dummy.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2025-09-17 16:51:24 +03:00
{
config,
lib,
pkgs,
modulesPath,
2025-09-17 16:51:24 +03:00
...
}:
2026-02-25 17:37:06 +02:00
let
uvmsPkgs = pkgs.callPackage ../pkgs { };
in
2025-09-17 16:51:24 +03:00
{
imports = [
../profiles/ch-runner.nix
../profiles/baseImage.nix
(modulesPath + "/profiles/minimal.nix")
2025-09-17 16:51:24 +03:00
];
system.stateVersion = "25.11";
networking.hostName = "dummy";
vmapps.enable = true;
_module.args.inputs = import ../npins;
2026-02-25 17:37:06 +02:00
# boot.isContainer = true;
2025-09-17 16:51:24 +03:00
boot.loader.grub.enable = false;
boot.initrd.systemd.enable = true;
2026-02-25 17:37:06 +02:00
boot.initrd.systemd.settings.Manager.DefaultTimeoutStartSec = 5;
2025-09-25 16:13:29 +03:00
systemd.settings.Manager.DefaultTimeoutStopSec = 10;
uvms.cloud-hypervisor.enable = true;
systemd.services."suid-sgid-wrappers".serviceConfig = {
StandardOutput = "journal+console";
StandardError = "journal+console";
};
2025-09-17 16:51:24 +03:00
2026-02-25 17:37:06 +02:00
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";
};
};
2025-09-17 16:51:24 +03:00
# TODO: cmdline, kernel, initrd, fileSystems
}