dotfiles/systems/x86_64-vm/virt/default.nix

38 lines
780 B
Nix
Raw Normal View History

2023-03-12 18:14:43 +00:00
{
pkgs,
lib,
...
}:
with lib; {
virtualisation.qemu.options = ["-vga qxl"];
# For sway to work with home manager
security.polkit.enable = true;
# Without this, sway fails to start in the VM
# programs.sway.extraSessionCommands = ''
# WLR_NO_HARDWARE_CURSORS=1
# '';
aa = {
nix.enable = true;
suites.desktop.enable = true;
2023-03-19 15:46:23 +00:00
tools.git.enable = true;
2023-03-19 16:10:00 +00:00
apps.neovim.enable = true;
2023-03-12 18:14:43 +00:00
};
users.users.virt = {
isNormalUser = true;
extraGroups = ["wheel"];
hashedPassword = "$6$nOlwKVf1u0Wt//zU$43xhafbe2CAWTjOemAUm1J1Dpw7to0ZTbGhFk7CkVTRB3E80a1lhhQ175VnkcJ/X1HI6lsyV8fNMc3GF7JTAP0";
};
environment = {
2023-03-19 15:16:10 +00:00
systemPackages = with pkgs; [
wayland-utils
];
2023-03-12 18:14:43 +00:00
variables = {"WLR_RENDERER_ALLOW_SOFTWARE" = "1";};
};
}