2023-04-12 17:21:24 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./modules/networks
|
|
|
|
./modules/nginx
|
2023-04-13 14:28:09 +02:00
|
|
|
./modules/purge
|
2023-04-12 17:21:24 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
version = 2;
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
device = "/dev/sda";
|
|
|
|
};
|
|
|
|
efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
};
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
#tmpOnTmpfs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
keyMap = "dvorak";
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
wget
|
|
|
|
htop-vim
|
|
|
|
];
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
user.name = "Rouven Seifert";
|
|
|
|
user.email = "rouven@rfive.de";
|
|
|
|
};
|
|
|
|
};
|
2023-04-12 21:14:29 +02:00
|
|
|
services.qemuGuest.enable = true;
|
2023-04-12 17:21:24 +02:00
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users.root.openssh.authorizedKeys.keyFiles = [
|
|
|
|
#../../keys/ssh/rouven-thinkpad
|
|
|
|
../../keys/ssh/rouven-pixel
|
|
|
|
../../keys/ssh/rouven-smartcard
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
|
|
|
|
}
|
|
|
|
|