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 #./packages.nix
#./home-assistant.nix #./home-assistant.nix
#./wifi-access-point.nix #./wifi-access-point.nix
#./kodi.nix ./kodi.nix
#./mpd.nix #./mpd.nix
]; ];
@ -29,29 +29,32 @@
environment.systemPackages = [ pkgs.mosh ]; environment.systemPackages = [ pkgs.mosh ];
# wifi setup # wifi setup
#system.custom.wifi = { system.custom.wifi = {
# enable = true; enable = true;
# configurationFile = <secrets/wpa_supplicant>; configurationFile = <secrets/wpa_supplicant>;
# interfaces = [ "wlp3s0" ]; interfaces = [ "wlp3s0" ];
#}; };
# nix-shell -p speedtest_cli --run speedtest
#configuration.fireqos = {
# enable = true;
# interface = "wlp3s0";
# input = 2500;
# output = 1200;
# balance = false;
#};
# nix-shell -p speedtest_cli --run speedtest # nix-shell -p speedtest_cli --run speedtest
configuration.fireqos = { configuration.fireqos = {
enable = true; enable = true;
interface = "eth0"; interface = "wlp3s0";
input = 2500; input = 2500;
output = 1200; output = 1200;
balance = false; 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 = { services.xserver = {
enable = true; enable = true;
autorun = false; autorun = true;
desktopManager = { desktopManager = {
kodi.enable = true; kodi.enable = true;
default = "kodi"; default = "kodi";
@ -14,6 +14,12 @@
enable = true; enable = true;
autoLogin.enable = true; autoLogin.enable = true;
autoLogin.user = config.users.users.kodi.name; 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> <home-manager/nixos>
# cross-compiling # cross-compiling
<cleverca22/qemu.nix> #<cleverca22/qemu.nix>
./grub.nix ./grub.nix
./networking-qos.nix ./networking-qos.nix

View file

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

View file

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