Compare commits

..

3 Commits

Author SHA1 Message Date
f41a2bb69b add cifs-utils 2025-11-20 16:56:52 +01:00
9f3ec54a87 moved locales and languages to locale.nix 2025-11-20 16:44:58 +01:00
230ba1f30c moved networking into module 2025-11-20 16:33:42 +01:00
3 changed files with 41 additions and 39 deletions

View File

@@ -1,8 +1,9 @@
{pkgs, ...}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./modules/users/users.nix
./modules/system/networking.nix
./modules/system/locale.nix
];
# Bootloader.
@@ -15,39 +16,6 @@
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking
networking = {
hostName = "testVM"; # Define your hostname.
networkmanager.enable = true;
};
# 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;
@@ -56,6 +24,7 @@
environment.systemPackages = with pkgs; [
vim
wget
cifs-utils
];
# Some programs need SUID wrappers, can be configured further or are
@@ -71,11 +40,6 @@
# 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?
}

View File

@@ -0,0 +1,23 @@
{
config,
...
}: {
time.timeZone = "Europe/Berlin";
i18n = {
defaultLocale = "en_US.UTF-8";
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";
};
};
console.keyMap = "de";
}

View File

@@ -0,0 +1,15 @@
{
config,
...
}: {
networking = {
hostName = "nixOS";
networkmanager.enable = true;
firewall = {
enable = true;
# allowedTCPPorts = [ 80 443];
# allowedUDPPorts = [];
};
};
}