Compare commits
No commits in common. "8a861f04238f06eb48eae650faa9e4f1fb8a0704" and "fe43be7e3ba5c868f5bda21bdb260bbf0c40a7a1" have entirely different histories.
8a861f0423
...
fe43be7e3b
6 changed files with 5 additions and 40 deletions
|
@ -32,8 +32,8 @@
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
./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 3001 8384 ];
|
allowedTCPPorts = [ 22 80 443 3000 8384 ];
|
||||||
allowedUDPPorts = [ 22 80 443 ];
|
allowedUDPPorts = [ 22 80 443 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
{ 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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ 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, pkgs-unstable, hostname, ... }:
|
{ pkgs, hostname, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./autoupdate.nix
|
./autoupdate.nix
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
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