diff --git a/home/christoph/default.nix b/home/christoph/default.nix index 7ced7553..62fcc2ee 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -317,6 +317,7 @@ rec { AusweisApp2 protonmail-bridge # TODO: Enable on startup, email module thunderbird # TODO: Email module + # parsec-bin # Office wacomtablet # For xournalpp/krita @@ -479,6 +480,7 @@ rec { "com.spotify.Client" "com.google.Chrome" "md.obsidian.Obsidian" + # "com.parsecgaming.parsec" "dev.vencord.Vesktop" ]; diff --git a/system/default.nix b/system/default.nix index 9796d636..75a623d9 100644 --- a/system/default.nix +++ b/system/default.nix @@ -163,8 +163,9 @@ with mylib.networking; { enable = true; removedAssociations = { - "application/pdf" = "chromium-browser.desktop"; - "text/plain" = "code.desktop"; + "application/pdf" = ["chromium-browser.desktop"]; + "text/plain" = ["code.desktop"]; + "text/html" = ["com.google.Chrome.desktop"]; }; defaultApplications = let @@ -172,13 +173,25 @@ with mylib.networking; { videoPlayer = "mpv.desktop"; imageViewer = "imv.desktop"; audioPlayer = "mpv.desktop"; # mov.desktop + pdfViewer = "org.pwmt.zathura.desktop"; + webBrowser = "firefox.desktop"; + fileBrowser = "nnn.desktop"; in { - "inode/directory" = "nnn.desktop"; + "text/html" = "${webBrowser}"; + + "inode/directory" = "${fileBrowser}"; + + "application/pdf" = "${pdfViewer}"; - "application/pdf" = "org.pwmt.zathura.desktop"; "application/x-sh" = "${textEditor}"; "application/xhtml+xml" = "${textEditor}"; "application/xml" = "${textEditor}"; + "text/plain" = "${textEditor}"; + "text/css" = "${textEditor}"; + "text/csv" = "${textEditor}"; + "text/javascript" = "${textEditor}"; + "text/json" = "${textEditor}"; + "text/xml" = "${textEditor}"; "image/bmp" = "${imageViewer}"; "image/jpeg" = "${imageViewer}"; @@ -197,13 +210,6 @@ with mylib.networking; { "video/x-msvideo" = "${videoPlayer}"; "video/x-ms-wmv" = "${videoPlayer}"; - "text/css" = "${textEditor}"; - "text/csv" = "${textEditor}"; - "text/javascript" = "${textEditor}"; - "text/json" = "${textEditor}"; - "text/plain" = "${textEditor}"; - "text/xml" = "${textEditor}"; - "audio/mpeg" = "${audioPlayer}"; "audio/ogg" = "${audioPlayer}"; "audio/opus" = "${audioPlayer}"; diff --git a/system/nixinator/default.nix b/system/nixinator/default.nix index 1186b93e..26d3174b 100644 --- a/system/nixinator/default.nix +++ b/system/nixinator/default.nix @@ -24,9 +24,17 @@ # "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {...}; }; - allowedTCPPorts = []; + allowedTCPPorts = [ + # 7777 # AvaTalk + # 12777 # AvaTalk + # 31431 # Parsec + ]; - allowedUDPPorts = []; + allowedUDPPorts = [ + # 7777 # AvaTalk + # 12777 # AvaTalk + # 31431 # Parsec + ]; wireguard-tunnels = { wg0-de-115 =