Files
nix-config/modules/hosts/nixxx/configuration.nix
T

95 lines
2.6 KiB
Nix
Raw Normal View History

2026-05-10 22:25:04 +07:00
# сам конфиг ---------------------------------------------------------------------------------
2026-04-12 10:04:23 +05:00
{ self, ... }:
{
flake.nixosModules.nixxx =
{ pkgs, ... }:
{
# пользовательский аккаунт
users.users.${self.user} = {
# группы пользователя
extraGroups = [ "wheel" ];
isNormalUser = true;
# личные пакеты пользователя
packages = with pkgs; [
tree
];
};
# разрешить несвободное ПО
nixpkgs.config.allowUnfree = true;
# hostname
networking.hostName = "${self.hostname}";
# timezone
time.timeZone = "Asia/Krasnoyarsk";
# языки
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "ru_RU.UTF-8";
LC_IDENTIFICATION = "ru_RU.UTF-8";
LC_MEASUREMENT = "ru_RU.UTF-8";
LC_MONETARY = "ru_RU.UTF-8";
LC_NAME = "ru_RU.UTF-8";
LC_NUMERIC = "ru_RU.UTF-8";
LC_PAPER = "ru_RU.UTF-8";
LC_TELEPHONE = "ru_RU.UTF-8";
LC_TIME = "ru_RU.UTF-8";
};
# загрузчик
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
# системные хуйнюшки ---------------------------------------------------------------------------------
# Enable flakes.
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Enable store optimization on every rebuild.
nix.settings.auto-optimise-store = true;
# Enable automatic garbace collection.
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable bluetooth.
hardware.bluetooth.enable = true;
# Enable sound.
services.pipewire = {
enable = true;
pulse.enable = true;
};
# для ноутбуков
# Enable TLP.
/*
services.tlp = {
enable = true;
settings = {
# Improve performance on battery.
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_performance";
PLATFORM_PROFILE_ON_BAT = "performance";
};
};
*/
system.stateVersion = "25.11"; # Did you read the comment?
2026-05-10 22:25:04 +07:00
};
}