nixos-config/configs/porani/configuration.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ pkgs, lib, config, ... }: {
2019-10-24 02:20:38 +02:00
imports = [
<system/server>
./hardware-configuration.nix
./tinc.nix
./syncthing.nix
#./packages.nix
#./home-assistant.nix
#./wifi-access-point.nix
2019-12-14 06:15:37 +01:00
./kodi.nix
2019-10-24 02:20:38 +02:00
#./mpd.nix
];
networking.hostName = "porani";
# enable initrd ssh
configuration.init-ssh = {
enable = "enabled";
kernelModules = [ "e1000e" ];
hostECDSAKey = <secrets/init-ssh/host_ecdsa_key>;
};
# programs
programs.custom.vim.enable = true;
environment.systemPackages = [ pkgs.mosh ];
# wifi setup
2019-12-14 06:15:37 +01:00
system.custom.wifi = {
enable = true;
configurationFile = <secrets/wpa_supplicant>;
interfaces = [ "wlp3s0" ];
};
2019-10-24 02:20:38 +02:00
# nix-shell -p speedtest_cli --run speedtest
configuration.fireqos = {
enable = true;
2019-12-14 06:15:37 +01:00
interface = "wlp3s0";
2019-10-24 02:20:38 +02:00
input = 2500;
output = 1200;
balance = false;
};
2019-12-14 06:15:37 +01:00
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = true;
# interface = "eth0";
# input = 2500;
# output = 1200;
# balance = false;
#};
# new Zealand overwrites
2019-12-18 11:48:37 +01:00
# services.netdata.enable = lib.mkForce false ;
2019-12-14 06:15:37 +01:00
services.SystemdJournal2Gelf.enable = lib.mkForce false;
2019-10-24 02:20:38 +02:00
}