Files
NixVM/nixos/configuration.nix

82 lines
1.9 KiB
Nix
Raw Normal View History

2025-11-19 20:52:22 +01:00
{pkgs, ...}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./modules/users/users.nix
];
2025-11-19 19:30:42 +01:00
# Bootloader.
2025-11-19 20:52:22 +01:00
boot.loader.grub = {
enable = true;
device = "/dev/vda";
useOSProber = true;
};
2025-11-19 19:30:42 +01:00
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking
2025-11-19 20:52:22 +01:00
networking = {
hostName = "testVM"; # Define your hostname.
networkmanager.enable = true;
};
2025-11-19 19:30:42 +01:00
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
# Configure console keymap
console.keyMap = "de";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
system.stateVersion = "25.05"; # Did you read the comment?
}