forked from lukas/nixos-config
Move service credentials and Wi-Fi keys behind agenix, rotate exposed LLDAP and Vikunja credentials, disable SSH password authentication, and remove obsolete CLAUDE.md guidance.
88 lines
2.1 KiB
Nix
88 lines
2.1 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
../user/builder.nix
|
|
../globalServices/default.nix
|
|
./localServices/default.nix
|
|
];
|
|
|
|
# printing
|
|
services.printing.enable = true;
|
|
services.printing.drivers = [ pkgs.brlaser ];
|
|
|
|
# nixos specific
|
|
documentation.nixos.enable = false;
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.allowUnsupportedSystems = true;
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# open ports
|
|
networking.firewall.allowedTCPPorts = [8080];
|
|
|
|
# hostname
|
|
networking.hostName = "tnix"; # Define your hostname.
|
|
|
|
# wireless
|
|
networking = {
|
|
wireless.enable = true;
|
|
wireless.secretsFile = config.age.secrets.wirelessSecretsFile.path;
|
|
#wireless.networks."berlin.freifunk.net" = {};
|
|
wireless.networks.idea.pskRaw = "ext:psk_mango";
|
|
#wireless.networks.iPhone.pskRaw = "ext:psk_iphone";
|
|
interfaces.wlan0.useDHCP = true;
|
|
};
|
|
|
|
# Keep LAN and WLAN from answering ARP for each other's addresses.
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.conf.all.arp_ignore" = 1;
|
|
"net.ipv4.conf.all.arp_announce" = 2;
|
|
};
|
|
|
|
# can build for other chip structures
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
# boot
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.kernelParams = [ "quiet" "loglevel=3" ];
|
|
boot.kernelModules = [ "btusb" ];
|
|
|
|
# hardware
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.package = pkgs.bluez;
|
|
hardware.firmware = with pkgs; [ linux-firmware ];
|
|
|
|
# time
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
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";
|
|
};
|
|
|
|
programs.hyprland.enable = true;
|
|
|
|
console.keyMap = "de";
|
|
|
|
environment.variables = {
|
|
EDITOR = "nvim";
|
|
VISUAL = "nvim";
|
|
};
|
|
|
|
|
|
system.stateVersion = "25.11"; # Did you read the comment?
|
|
|
|
}
|