Compare commits

...

3 commits

Author SHA1 Message Date
willifan
8a861f0423 fix invidious database issue 2024-08-11 10:23:06 +02:00
willifan
44e603d23c added minecraft server 2024-08-07 22:10:55 +02:00
willifan
ff2317bf3e added invidious 2024-08-07 21:01:51 +02:00
6 changed files with 40 additions and 5 deletions

View file

@ -32,8 +32,8 @@
let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
in
{
nixosConfigurations = {

View file

@ -9,6 +9,8 @@
./firewall.nix
./gitea.nix
./hardware-configuration.nix
./invidious.nix
./minecraft.nix
./radicale.nix
./syncthing.nix

View file

@ -2,7 +2,7 @@
{
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 3000 8384 ];
allowedTCPPorts = [ 22 80 443 3000 3001 8384 ];
allowedUDPPorts = [ 22 80 443 ];
};
}

23
hosts/Anton/invidious.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, lib, ... }:
{
services.invidious = {
enable = true;
port = 3001;
settings = {
db = {
user = lib.mkForce "invidious";
# password = lib.mkForce "invidious";
# host = lib.mkForce "localhost";
# port = 5432;
# dbname = lib.mkForce "invidious";
};
popular_enabled = false;
quality = "dash";
volume = 10;
save_player_pos = true;
unseen_only = true;
local = true;
};
};
}

11
hosts/Anton/minecraft.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, pkgs-unstable, ...}:
{
services.minecraft-server = {
eula = true;
enable = true;
package = pkgs-unstable.minecraft-server;
jvmOpts = "-Xms4096M -Xmx8192M";
dataDir = "/mnt/data/services/minecraft";
openFirewall = true;
};
}

View file

@ -1,4 +1,4 @@
{ pkgs, hostname, ... }:
{ pkgs, pkgs-unstable, hostname, ... }:
{
imports = [
./autoupdate.nix
@ -11,7 +11,6 @@
hostName = "${hostname}";
};
console.keyMap = "de";
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "23.11";
}