Das Netzwerk in der Riesaer Str. 32
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaults.nix 998B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. { hostName, inputs, pkgs, options, lib, ... }:
  2. {
  3. boot.kernelParams = [
  4. # No server/router runs any untrusted user code
  5. "mitigations=off"
  6. # Prevents automatic creation of interface bond0 by the kernel
  7. "bonding.max_bonds=0"
  8. ];
  9. boot.tmpOnTmpfs = true;
  10. # Includes wireguard
  11. boot.kernelPackages = pkgs.linuxPackages_latest;
  12. # no persistent logs
  13. services.journald.extraConfig = ''
  14. RuntimeMaxUse=32M
  15. Storage=volatile
  16. '';
  17. nix = {
  18. package = pkgs.nixFlakes;
  19. extraOptions = "experimental-features = nix-command flakes";
  20. registry = {
  21. nixpkgs.flake = inputs.nixpkgs;
  22. };
  23. };
  24. documentation = {
  25. enable = false;
  26. nixos.enable = false;
  27. };
  28. environment.systemPackages = with pkgs; [
  29. vim screen git wget psmisc
  30. tcpdump iputils mtr traceroute bmon iptables conntrack-tools
  31. bridge-utils dhcpcd ethtool
  32. ];
  33. networking.hostName = hostName;
  34. users.users.root.initialHashedPassword = "";
  35. system.stateVersion = "20.09";
  36. }