porani: setup to be a video box
This commit is contained in:
parent
3af4999930
commit
e27e76e316
5 changed files with 30 additions and 20 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<home-manager/nixos>
|
||||
|
||||
# cross-compiling
|
||||
<cleverca22/qemu.nix>
|
||||
#<cleverca22/qemu.nix>
|
||||
|
||||
./grub.nix
|
||||
./networking-qos.nix
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
enable = lib.mkDefault true;
|
||||
# https://docs.netdata.cloud/daemon/config/
|
||||
config = {
|
||||
global = {
|
||||
|
|
Loading…
Reference in a new issue