nix-config/modules/base.nix

49 lines
888 B
Nix
Raw Normal View History

2022-04-23 03:01:58 +02:00
{ pkgs, config, ... }:
{
_module.args.buildVM = false;
nix = {
2022-04-23 04:17:33 +02:00
package = pkgs.nixFlakes;
2022-04-23 03:01:58 +02:00
extraOptions = ''
experimental-features = nix-command flakes
2022-04-23 13:41:36 +02:00
'';
2022-04-23 03:01:58 +02:00
};
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
};
users.users.root = {
openssh.authorizedKeys.keyFiles = [
2022-04-23 13:41:36 +02:00
../keys/ssh/revol-xut
../keys/ssh/oxa
../keys/ssh/marenz1
../keys/ssh/marenz2
2022-04-23 03:01:58 +02:00
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
git
htop
tmux
vim_configurable
wget
git-crypt
2022-04-23 13:41:36 +02:00
neovim
2022-04-24 16:09:18 +02:00
iftop
2022-04-23 03:01:58 +02:00
];
# Enable the OpenSSH daemon.
2022-04-23 13:49:25 +02:00
services.openssh = {
enable = true;
passwordAuthentication = false;
};
2022-04-23 03:01:58 +02:00
programs.mosh.enable = true;
}