Files
my_nixos/hosts/generic/configuration_generic.nix
T
2025-09-23 10:22:20 +03:00

52 lines
1.2 KiB
Nix

{ config, lib, pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes"];
# loader setup
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# timezone
time.timeZone = "Europe/Moscow";
programs.zsh.enable = true;
programs.fish.enable = true;
environment.systemPackages = with pkgs; [
git
wget
nfs-utils
pantum-driver
];
nixpkgs.config.allowUnfree = true;
programs.neovim = {
enable = true;
defaultEditor = true;
};
services.openssh.enable = true;
services.openssh.settings.X11Forwarding = true;
# networking
networking.networkmanager.enable = true;
networking.firewall.allowedTCPPorts = [ 22 3240 2049 25565 554 80 ];
networking.firewall.allowedUDPPorts = [ 38401 25565 554 80];
networking.nftables.enable = true;
networking.hosts = {
"192.168.1.116" = [ "Clank" ];
"192.168.1.222" = [ "Aphelion" ];
"192.168.1.94" = [ "Qwark" ];
};
# locales
i18n.extraLocales = [ "en_US.UTF-8/UTF-8" "C.UTF-8/UTF-8" "ru_RU.UTF-8/UTF-8" ];
# keyboard
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
}