1
0
Fork 0
nixos-config/system/default.nix

69 lines
1.1 KiB
Nix
Raw Normal View History

2018-02-08 22:55:24 +00:00
{ pkgs, ... }:
2018-02-08 22:16:23 +00:00
{
2018-04-02 15:52:16 +00:00
# channel = 18.03
2018-02-08 23:51:40 +00:00
imports = [
2018-05-29 19:52:35 +00:00
./laptop.nix
2018-02-08 23:51:40 +00:00
./admin.nix
./syncthing.nix
2018-05-29 19:52:35 +00:00
modules/cdarknet
2018-02-08 23:51:40 +00:00
];
2018-02-08 22:16:23 +00:00
i18n = {
defaultLocale = "en_US.UTF-8";
};
2018-05-29 19:52:35 +00:00
2018-02-08 22:16:23 +00:00
time.timeZone = "Europe/Berlin";
2018-02-08 22:55:24 +00:00
2018-05-29 19:52:35 +00:00
security.rngd.enable = true;
2018-02-08 22:55:24 +00:00
# So that boot does not fill up with old kernels
2018-02-08 22:16:23 +00:00
boot.loader.grub.configurationLimit = 5;
users = {
defaultUserShell = pkgs.zsh;
mutableUsers = false;
};
2018-05-26 20:48:33 +00:00
security.sudo.extraConfig = "
Defaults timestamp_type=global, timestamp_timeout=15
";
2018-02-08 22:16:23 +00:00
networking.firewall.allowPing = true;
services = {
sshd.enable = true;
};
environment = {
systemPackages = with pkgs; [
git
gnumake
python3
mkpasswd
rxvt_unicode.terminfo
htop
file
tmux
socat
tcpdump
wget
curl
neovim
];
sessionVariables = {
TERMINFO = "/run/current-system/sw/share/terminfo";
};
};
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
};
vim.defaultEditor = true;
};
}