2024-05-27 21:12:29 -06:00
|
|
|
{ pkgs
|
2024-05-28 11:44:27 -06:00
|
|
|
, config
|
2024-05-27 21:12:29 -06:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pubKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
|
2024-05-28 11:44:27 -06:00
|
|
|
] ++ config.myconf.managementPubKeys;
|
2024-05-27 21:12:29 -06:00
|
|
|
myKodi = pkgs.kodi.withPackages (kp: [
|
|
|
|
kp.somafm
|
|
|
|
kp.jellyfin
|
|
|
|
kp.invidious
|
2024-05-28 11:44:27 -06:00
|
|
|
kp.infotagger
|
|
|
|
kp.certifi
|
|
|
|
kp.jellycon
|
|
|
|
kp.requests
|
2024-05-27 21:12:29 -06:00
|
|
|
]);
|
|
|
|
in
|
|
|
|
{
|
2024-05-28 11:44:27 -06:00
|
|
|
_module.args.isUnstable = true;
|
2024-05-27 21:12:29 -06:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
2024-05-28 11:44:27 -06:00
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-05-27 21:12:29 -06:00
|
|
|
};
|
2024-05-28 11:44:27 -06:00
|
|
|
|
2024-05-27 21:12:29 -06:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "tv";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
checkReversePath = "loose";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
libinput.enable = true;
|
|
|
|
enable = true;
|
2024-05-28 11:44:27 -06:00
|
|
|
desktopManager = {
|
|
|
|
kodi = {
|
|
|
|
enable = true;
|
|
|
|
package = myKodi;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
displayManager = {
|
|
|
|
autoLogin = {
|
|
|
|
user = "tv";
|
|
|
|
enable = true;
|
|
|
|
};
|
2024-05-27 21:12:29 -06:00
|
|
|
};
|
|
|
|
videoDrivers = [ "intel" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users = {
|
|
|
|
users = {
|
|
|
|
root = { openssh.authorizedKeys.keys = pubKeys; };
|
|
|
|
tv = {
|
|
|
|
openssh.authorizedKeys.keys = pubKeys;
|
|
|
|
isNormalUser = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system = {
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
}
|