diff --git a/home-manager/mpv.nix b/home-manager/mpv.nix new file mode 100644 index 0000000..3e3ea9c --- /dev/null +++ b/home-manager/mpv.nix @@ -0,0 +1,14 @@ +{ config, pkgs, inputs, ...}: +{ + programs.mpv = { + enable = true; + config = { + volume = 50; + }; + scripts = with pkgs.mpvScripts; [ + mpris + videoclip # keybind = c + modernx + ]; + }; +} diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index e57c07c..4fc9a0a 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -74,7 +74,6 @@ in { libreoffice-fresh screenshot anki - mpv p7zip qbittorrent brightnessctl diff --git a/modules/services/nginx.nix b/modules/services/nginx.nix index 5146014..4ff13f8 100644 --- a/modules/services/nginx.nix +++ b/modules/services/nginx.nix @@ -86,8 +86,16 @@ in { }; "/socket.io" = { proxyPass = "http://localhost:9955"; proxyWebsockets = true; }; "/comms/" = { + extraConfig = '' + more_set_headers "Permissions-Policy: geolocation=(), microphone=(self), camera=(self)"; + ''; alias = "/comms/"; - tryFiles = "$uri $uri/ /index.html"; + tryFiles = "$uri $uri/ /comms/index.html"; + }; + "/comms" = { + extraConfig = '' + return 301 /comms/; + ''; }; }; }; diff --git a/systems/laptop/configuration.nix b/systems/laptop/configuration.nix index 35d1a6e..11b8496 100644 --- a/systems/laptop/configuration.nix +++ b/systems/laptop/configuration.nix @@ -54,7 +54,8 @@ }; # Enable CUPS to print documents. - services.printing.enable = true; + # disable until CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177 is fixed + services.printing.enable = false; # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 207b6d3..26bb16c 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -152,10 +152,11 @@ console.keyMap = "de"; # Enable CUPS to print documents. - services.printing.enable = true; + # disable until CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177 is fixed + services.printing.enable = false; services.printing.drivers = [ pkgs.brlaser ]; services.avahi = { - enable = true; + enable = false; nssmdns4 = true; openFirewall = true; }; diff --git a/systems/vm/configuration.nix b/systems/vm/configuration.nix index 9532603..9249e9c 100644 --- a/systems/vm/configuration.nix +++ b/systems/vm/configuration.nix @@ -23,25 +23,18 @@ #hyprland.enable = true; #lightdm.enable = true; #sddm.enable = true; + plasma.enable = true; #cosmic.enable = true; }; - services = { - kavita = { - enable = true; - https = false; - autoDownload = false; - isTest = true; - }; - }; - }; - services.xserver = { - enable = true; - desktopManager = { - xterm.enable = false; - xfce.enable = true; - }; - displayManager.defaultSession = "xfce"; }; + #services.xserver = { + # enable = true; + # desktopManager = { + # xterm.enable = false; + # xfce.enable = true; + # }; + # displayManager.defaultSession = "xfce"; + #}; programs.firefox.enable = true; diff --git a/users/kopatz/home.nix b/users/kopatz/home.nix index dc3545e..55b4528 100644 --- a/users/kopatz/home.nix +++ b/users/kopatz/home.nix @@ -29,6 +29,7 @@ ../../home-manager/zsh ../../home-manager/i3.nix ../../home-manager/stylix.nix + ../../home-manager/mpv.nix inputs.nixvim.homeManagerModules.nixvim inputs.nix-colors.homeManagerModule ];