nix-config/modules/base.nix

56 lines
1.1 KiB
Nix

{ pkgs, config, ... }:
{
_module.args.buildVM = false;
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
autoOptimiseStore = true;
binaryCaches = [
"https://nix-serve.hq.c3d2.de"
];
binaryCachePublicKeys = [
"nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps="
];
};
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
};
users.users.root = {
openssh.authorizedKeys.keyFiles = [
../keys/ssh/revol-xut
../keys/ssh/oxa
../keys/ssh/oxa1
../keys/ssh/marenz1
../keys/ssh/marenz2
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
git
htop
tmux
vim_configurable
wget
git-crypt
iftop
];
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
passwordAuthentication = false;
};
programs.mosh.enable = true;
}