58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
modulesPath,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
./disk-config-vm.nix
|
|
];
|
|
boot = {
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
kernelParams = ["consoleblank=60"];
|
|
loader = {
|
|
timeout = 10;
|
|
/*
|
|
systemd-boot = {
|
|
enable = true;
|
|
};
|
|
*/
|
|
grub = {
|
|
device = "nodev";
|
|
efiSupport = true;
|
|
efiInstallAsRemovable = true;
|
|
forceInstall = true;
|
|
};
|
|
efi = {
|
|
#canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
};
|
|
plymouth = {
|
|
enable = true;
|
|
theme = "breeze";
|
|
};
|
|
kernel = {
|
|
sysctl = {"vm.swappiness" = 10;};
|
|
};
|
|
};
|
|
services.openssh.enable = true;
|
|
|
|
environment.systemPackages = map lib.lowPrio [
|
|
pkgs.curl
|
|
pkgs.git
|
|
pkgs.git-crypt
|
|
];
|
|
|
|
users.users.root = {
|
|
initialPassword = "changeme";
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINd8AdVbQQ/Fmw+b9mI8EMYqIoRkwmSwAOtmlte3incL don@loki"
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|