{ inputs, outputs, suiteModules, lib, config, pkgs, ... }: { virtualisation.vmVariant = { virtualisation.resolution = { x = 1280; y = 1024; }; virtualisation.qemu.options = [ "-vga virtio" "-display gtk,zoom-to-fit=false" "-chardev qemu-vdagent,id=ch1,name=vdagent,clipboard=on" "-device virtio-serial-pci" "-device virtserialport,chardev=ch1,id=ch1,name=com.redhat.spice.0" ]; }; imports = [ inputs.home-manager.nixosModules.home-manager ]; nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs = { overlays = [ outputs.overlays.addpkgs ]; config = { allowUnfree = true; }; }; nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs); nix.nixPath = ["/etc/nix/path"]; environment.etc = lib.mapAttrs' (name: value: { name = "nix/path/${name}"; value.source = value.flake; }) config.nix.registry; nix.settings = { experimental-features = "nix-command flakes"; auto-optimise-store = true; }; networking.hostName = "test-vm"; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; home-manager = { extraSpecialArgs = {inherit inputs outputs suiteModules pkgs;}; users = { aner = import ../home-manager/home.nix; }; }; users.users = { aner = { initialPassword = "password"; isNormalUser = true; openssh.authorizedKeys.keys = []; extraGroups = ["wheel" "libvirtd"]; }; }; services.openssh = { enable = true; settings = { PermitRootLogin = "no"; PasswordAuthentication = true; }; }; system.stateVersion = "24.05"; }