96 lines
2.3 KiB
Nix
96 lines
2.3 KiB
Nix
{ 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 ---
|
||
# CRITICAL FOR DOCKER + IPV6
|
||
# 1. Enable Forwarding (Required for Docker)
|
||
# 2. Force Accept RA = 2 (Required to get IPv6 address even if forwarding is on)
|
||
boot.kernel.sysctl = {
|
||
"net.ipv4.ip_forward" = 1;
|
||
"net.ipv6.conf.all.forwarding" = 1;
|
||
"net.ipv6.conf.all.accept_ra" = 2;
|
||
"net.ipv6.conf.default.accept_ra" = 2;
|
||
"net.ipv6.conf.${lib.head config.vars.interfaces}.accept_ra" = 2;
|
||
};
|
||
|
||
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!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
}
|