nixos-config/hosts/vm/default.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-06 22:22:05 +02:00
{ pkgs, modulesPath, ... }:
2023-05-01 12:30:21 +02:00
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
2023-05-06 22:22:05 +02:00
"${modulesPath}/virtualisation/qemu-vm.nix"
2023-05-01 12:30:21 +02:00
];
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelPackages = pkgs.linuxPackages_latest;
tmp.useTmpfs = true;
};
2023-05-01 13:17:37 +02:00
networking.hostName = "vm";
2023-05-18 12:49:06 +02:00
# environment.persistence."/nix/persistent/system" = {
# directories = [ "/etc/nixos" ];
# files = [ "/etc/machine-id" ];
# };
2023-05-01 13:17:37 +02:00
2023-05-01 12:30:21 +02:00
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "dvorak";
};
environment.systemPackages = with pkgs; [
vim
wget
htop-vim
];
programs.git = {
enable = true;
config = {
user.name = "Rouven Seifert";
user.email = "rouven@rfive.de";
};
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
2023-05-01 13:17:37 +02:00
users.mutableUsers = false;
users.users.root = {
initialHashedPassword = "$6$Y2N3qdQL/irp4wM5$dxUv1vyACcf/lE69tHiobTgNbW8v2sbrlvCsAbv8YXmRV4fxS45p0uly.1sv2l0uRN1Y8dxnNFQASRN5qNJk71";
openssh.authorizedKeys.keyFiles = [
../../keys/ssh/rouven-thinkpad
];
};
2023-07-30 19:41:51 +02:00
system.stateVersion = "23.05";
2023-05-01 12:30:21 +02:00
}