# Get a VM: # nixos-rebuild -I nixpkgs=channel:nixos-26.05 -I nixos-config=$(pwd)/configuration.nix build-vm-with-bootloader { config, lib, pkgs, ... }: let in { boot = { plymouth = { enable = true; theme = "solar"; }; # Enable "Silent boot" consoleLogLevel = 3; kernelParams = [ "quiet" "rd.udev.log_level=3" "rd.systemd.show_status=auto" "plymouth.use-simpledrm" ]; loader.timeout = 0; loader.systemd-boot.enable = true; }; hardware.graphics.enable = true; virtualisation.vmVariant = { virtualisation = { memorySize = 4096; cores = 3; }; virtualisation.qemu.options = [ "-device virtio-vga" ]; services.getty.autologinUser = "root"; }; virtualisation.vmVariantWithBootLoader = { virtualisation = { memorySize = 2048; cores = 2; }; virtualisation.qemu.options = [ "-device virtio-vga" ]; services.getty.autologinUser = "root"; }; time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "de_DE.UTF-8"; users.users.root.password = "captain"; users.mutableUsers = false; nix.settings.experimental-features = [ "nix-command" "flakes" ]; console.keyMap = "de"; programs.bash.loginShellInit = '' echo Welcome Captain! ''; users.users."cadet" = { isNormalUser = true; initialPassword = "space cadet"; }; services.pipewire = { enable = true; alsa.enable = true; pulse.enable = true; }; services.getty = { greetingLine = "Spaceship Laptops"; # without mkForce it shows the "nixos-help" line helpLine = lib.mkForce "To boldy go where no one has gone before!" ; }; environment.systemPackages = with pkgs; [ neovim htop # (callPackage ./empty-epsilon.nix {}) ]; services.cage = { enable = true; user = "cadet"; program = "${pkgs.empty-epsilon}/bin/EmptyEpsilon"; }; systemd.services."cage-tty1".serviceConfig.Restart = lib.mkForce "always"; networking.wireless.enable = true; system.stateVersion = "26.05"; }