nixos-config/hosts/vm/default.nix

37 lines
782 B
Nix
Raw Normal View History

2024-05-19 18:28:51 +02:00
{ pkgs, config, lib, ... }:
{
imports = [
./hardware-configuration.nix
./../../modules/core
];
nixpkgs.config.permittedInsecurePackages = [
"jitsi-meet-1.0.8043"
"olm-3.2.16"
];
2024-05-19 18:28:51 +02:00
# kvm/qemu doesn't use UEFI firmware mode by default.
# so we force-override the setting here
# and configure GRUB instead.
2024-07-15 07:43:36 +02:00
boot.loader = {
systemd-boot.enable = lib.mkForce false;
grub = {
enable = true;
device = "/dev/vda";
useOSProber = false;
};
};
2024-05-19 18:28:51 +02:00
# allow local remote access to make it easier to toy around with the system
services.openssh = {
enable = true;
ports = [22];
settings = {
# PasswordAuthentication = lib.mkOverride true;
2024-05-19 18:28:51 +02:00
AllowUsers = null;
# PermitRootLogin = "yes";
2024-05-19 18:28:51 +02:00
};
};
}