Files
my_nixos/hosts/generic/configuration_generic.nix
2026-05-09 16:17:24 +03:00

50 lines
1.2 KiB
Nix

{ config, lib, pkgs, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes"];
time.timeZone = "Europe/Moscow";
# loader setup
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
programs.zsh.enable = true;
programs.fish.enable = true;
environment.systemPackages = with pkgs; [
git
wget
nfs-utils
sbctl
];
nixpkgs.config.allowUnfree = true;
programs.neovim = {
enable = true;
defaultEditor = true;
};
fonts.packages = with pkgs; [
ubuntu-classic # For standard Ubuntu fonts
# nerdFonts.override { fonts = [ "JetBrainsMono" ]; } # For specific Nerd Fonts
# noto-fonts
];
services.openssh.enable = true;
services.openssh.settings.X11Forwarding = 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"
'';
}