NixOS-Vista/showcaseVM/haveItrun.nix
2026-02-12 15:32:45 +01:00

65 lines
1.2 KiB
Nix

{
config,
pkgs,
lib,
inputs,
...
}: let
username = "icarus";
gitUsername = "icarus";
password = "icarus";
in {
# Enable Hyprland
#programs.hyprland.enable = true;
# No display manager
#services.displayManager.sddm.enable = false;
# Start Hyprland automatically after login
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.bash}/bin/bash -lc 'WLR_RENDERER=pixman start-hyprland'";
user = username;
};
};
};
environment.systemPackages = with pkgs; [
pciutils
];
# does not work?
virtualisation.vmVariant = {
virtualisation = {
memorySize = 2048; # Use 2048 MiB of RAM
cores = 3; # Use 3 CPU cores
};
};
environment.sessionVariables = {
WLR_RENDERER = "pixman";
};
# temp enable ssh
# virtualisation.vmVariant = {
# virtualisation.forwardPorts = [
# {
# from = "host";
# host.port = 8222;
# guest.port = 22;
# }
# ];
# };
# for testing:
# services.openssh = {
# enable = true;
# settings = {
# PasswordAuthentication = true;
# PermitRootLogin = "yes"; # or "prohibit-password"
# };
# };
}