Compare commits
3 commits
fe43be7e3b
...
8a861f0423
Author | SHA1 | Date | |
---|---|---|---|
|
8a861f0423 | ||
|
44e603d23c | ||
|
ff2317bf3e |
6 changed files with 40 additions and 5 deletions
|
@ -32,8 +32,8 @@
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||||
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
./firewall.nix
|
./firewall.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./invidious.nix
|
||||||
|
./minecraft.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{
|
{
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 22 80 443 3000 8384 ];
|
allowedTCPPorts = [ 22 80 443 3000 3001 8384 ];
|
||||||
allowedUDPPorts = [ 22 80 443 ];
|
allowedUDPPorts = [ 22 80 443 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
23
hosts/Anton/invidious.nix
Normal file
23
hosts/Anton/invidious.nix
Normal 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
11
hosts/Anton/minecraft.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, hostname, ... }:
|
{ pkgs, pkgs-unstable, hostname, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./autoupdate.nix
|
./autoupdate.nix
|
||||||
|
@ -11,7 +11,6 @@
|
||||||
hostName = "${hostname}";
|
hostName = "${hostname}";
|
||||||
};
|
};
|
||||||
console.keyMap = "de";
|
console.keyMap = "de";
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue