nix-config/modules/base.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2022-04-23 03:01:58 +02:00
{ pkgs, config, ... }:
{
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-28 20:01:49 +02:00
autoOptimiseStore = true;
2022-04-29 15:20:33 +02:00
binaryCaches = [
2022-05-05 22:58:33 +02:00
"https://dump-dvb.cachix.org"
"https://nix-serve.hq.c3d2.de"
2022-04-29 15:20:33 +02:00
];
binaryCachePublicKeys = [
2022-05-05 22:58:33 +02:00
"dump-dvb.cachix.org-1:+Dq7gqpQG4YlLA2X3xJsG1v3BrlUGGpVtUKWk0dTyUU="
"nix-serve.hq.c3d2.de:KZRGGnwOYzys6pxgM8jlur36RmkJQ/y8y62e52fj1ps="
2022-04-29 15:20:33 +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
2022-05-01 00:08:00 +02:00
../keys/ssh/oxa1
2022-04-23 13:41:36 +02:00
../keys/ssh/marenz1
../keys/ssh/marenz2
2022-05-03 03:42:39 +02:00
../keys/ssh/astro
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-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;
}