Files
nixconf/configuration.nix
T
2026-02-09 23:38:15 +01:00

92 lines
2.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan...
./hardware-configuration.nix
# ...and additional configurations...
./var_reg.nix
./vars.nix
# System
./users.nix
./program-homemanager.nix
./ssh.nix
./program-tmux.nix
# Services
# ./wireguard.nix
./docker.nix
./chrony.nix
./docker-device-mapper.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# --- KERNEL NETWORK CONFIGURATION ---
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = 1;
"net.ipv4.conf.all.rp_filter" = 1;
"net.ipv4.conf.default.rp_filter" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
boot.kernelModules = [ "rbd" "nbd" ];
hardware.bluetooth.enable = true;
hardware.bluetooth.settings = {
General = {
Experimental = true;
};
};
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Enable the X11 windowing system.
services.xserver.enable = false;
# Enable CUPS to print documents.
services.printing.enable = false;
# Enable sound.
services.pulseaudio.enable = false;
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = false;
# Define a user account. Don't forget to set a password with passwd.
security.sudo.wheelNeedsPassword = false;
users.defaultUserShell = pkgs.zsh;
# Allow unfree software and packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile.
environment.systemPackages = with pkgs; [
wget
htop
ncdu
git
zsh
zoxide
yazi
fzf
zip
];
# Firewall settings
# Your firewall is DISABLED, so we don't need to manually add allowedUDPPorts for DHCPv6.
networking.firewall.enable = false;
# Copy the NixOS configuration file
system.copySystemConfiguration = true;
# DO NOT TOUCH!!!!!!!!!!!!!!!!!!!!!!!!!!
system.stateVersion = config.vars.stateVersion;
# DO NOT TOUCH!!!!!!!!!!!!!!!!!!!!!!!!!!
}