nixos/common/base.nix

45 lines
909 B
Nix
Raw Normal View History

2023-07-16 16:43:13 +03:00
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
2023-07-16 19:02:49 +03:00
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "@wheel" ];
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
2023-07-16 16:43:13 +03:00
};
2023-07-16 19:00:44 +03:00
2023-07-16 16:43:13 +03:00
environment.systemPackages = with pkgs; [
neovim
wget
git
curl
2023-07-16 19:00:44 +03:00
usbutils
pciutils
coreutils-full
2023-07-17 07:54:37 +03:00
killall
2023-07-16 16:43:13 +03:00
];
networking.networkmanager.enable = true;
networking.nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" ];
2023-07-17 07:54:37 +03:00
services.timesyncd.enable = true;
networking.timeServers = [ "ntp1.vniiftri.ru" "0.ru.pool.ntp.org" "0.pool.ntp.org" ];
2023-07-16 16:43:13 +03:00
i18n.defaultLocale = "ru_RU.UTF-8";
console = {
font = "${pkgs.terminus_font}/share/consolefonts/ter-u16b.psf.gz";
keyMap = "us";
packages = with pkgs; [ terminus_font ];
};
}