Compare commits

...

8 commits

4 changed files with 45 additions and 10 deletions

View file

@ -9,6 +9,7 @@
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = false;
KbdInteractiveAuthentication = false; KbdInteractiveAuthentication = false;
X11Forwarding = true;
}; };
}; };

View file

@ -17,13 +17,16 @@ in
# ./open-pgsql.nix # ./open-pgsql.nix
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = let
libbluray = pkgs.libbluray.override {
withAACS = true;
withBDplus = true;
};
in
[
( (
self: super: { self: super: {
libbluray = super.libbluray.override { vlc = super.vlc.override { inherit libbluray; };
withAACS = true;
withBDplus = true;
};
} }
) )
]; ];
@ -39,7 +42,7 @@ in
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver) intel-vaapi-driver
libvdpau-va-gl libvdpau-va-gl
vaapiVdpau vaapiVdpau
# intel-media-driver # intel-media-driver
@ -103,8 +106,9 @@ in
services.openssh = { services.openssh = {
enable = true; enable = true;
settings = { settings = {
# ForwardX11 = true;
PasswordAuthentication = false; PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
X11Forwarding = true;
}; };
}; };
@ -165,6 +169,7 @@ in
}; };
# Dont start automatically # Dont start automatically
systemd.services."beesd@backup-disk".wantedBy = lib.mkForce []; systemd.services."beesd@backup-disk".wantedBy = lib.mkForce [];
systemd.services."beesd@data".serviceConfig.CPUQuota = "10%";
security.acme = { security.acme = {
defaults = { defaults = {

View file

@ -38,7 +38,7 @@ in
''; '';
}; };
hardware.pulseaudio = { services.pulseaudio = {
enable = true; enable = true;
systemWide = true; systemWide = true;
tcp.enable = true; tcp.enable = true;

View file

@ -6,7 +6,7 @@ in
services.nextcloud = { services.nextcloud = {
enable = true; enable = true;
https = true; https = true;
package = pkgs.nextcloud30; package = pkgs.nextcloud31;
hostName = hostName; hostName = hostName;
datadir = "/data/nextcloud"; datadir = "/data/nextcloud";
settings = { settings = {
@ -16,6 +16,7 @@ in
]; ];
blacklisted_files = []; blacklisted_files = [];
trashbin_retention_obligation = "auto, 14"; trashbin_retention_obligation = "auto, 14";
"simpleSignUpLink.shown" = false;
}; };
config = { config = {
dbtype = "pgsql"; dbtype = "pgsql";
@ -48,13 +49,41 @@ in
after = ["postgresql.service"]; after = ["postgresql.service"];
}; };
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 4431 ];
services.nginx = { services.nginx = {
virtualHosts.${hostName} = { virtualHosts.${hostName} = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
defaultListen = [
{
addr = "[::]";
port = 443;
ssl = true;
}
{
addr = "0.0.0.0";
port = 443;
ssl = true;
}
{
addr = "[::]";
port = 80;
ssl = false;
}
{
addr = "0.0.0.0";
port = 80;
ssl = false;
}
{
addr = "[::]";
port = 4431;
ssl = true;
proxyProtocol = true;
}
];
}; };
users.extraGroups.music = { users.extraGroups.music = {