porani: setup to be a video box

This commit is contained in:
Ingolf Wagner 2019-12-14 18:15:37 +13:00
parent 3af4999930
commit e27e76e316
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 30 additions and 20 deletions

View file

@ -10,7 +10,7 @@
#./packages.nix
#./home-assistant.nix
#./wifi-access-point.nix
#./kodi.nix
./kodi.nix
#./mpd.nix
];
@ -29,29 +29,32 @@
environment.systemPackages = [ pkgs.mosh ];
# wifi setup
#system.custom.wifi = {
# enable = true;
# configurationFile = <secrets/wpa_supplicant>;
# interfaces = [ "wlp3s0" ];
#};
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = true;
# interface = "wlp3s0";
# input = 2500;
# output = 1200;
# balance = false;
#};
system.custom.wifi = {
enable = true;
configurationFile = <secrets/wpa_supplicant>;
interfaces = [ "wlp3s0" ];
};
# nix-shell -p speedtest_cli --run speedtest
configuration.fireqos = {
enable = true;
interface = "eth0";
interface = "wlp3s0";
input = 2500;
output = 1200;
balance = false;
};
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = true;
# interface = "eth0";
# input = 2500;
# output = 1200;
# balance = false;
#};
# new Zealand overwrites
services.netdata.enable = lib.mkForce false ;
services.SystemdJournal2Gelf.enable = lib.mkForce false;
}

View file

@ -4,7 +4,7 @@
services.xserver = {
enable = true;
autorun = false;
autorun = true;
desktopManager = {
kodi.enable = true;
default = "kodi";
@ -14,6 +14,12 @@
enable = true;
autoLogin.enable = true;
autoLogin.user = config.users.users.kodi.name;
# todo test it
# if kodi crashes restart the whole xsession to trigger the login
extraConfig = ''
session-cleanup-script=service lightdm restart
'';
};
};

View file

@ -11,7 +11,7 @@
<home-manager/nixos>
# cross-compiling
<cleverca22/qemu.nix>
#<cleverca22/qemu.nix>
./grub.nix
./networking-qos.nix

View file

@ -1,5 +1,6 @@
{ lib, ... }:
{
# send data to graylog
services.SystemdJournal2Gelf.enable = true;
services.SystemdJournal2Gelf.enable = lib.mkDefault true;
services.SystemdJournal2Gelf.graylogServer = "workhorse.private:11201";
}

View file

@ -1,7 +1,7 @@
{ lib, pkgs, ... }:
{
services.netdata = {
enable = true;
enable = lib.mkDefault true;
# https://docs.netdata.cloud/daemon/config/
config = {
global = {