Remove teams-for-linux, update chromium config and add package
teams-for-linux seems to have support issues with new teams updates, so switching to just using chromium as my browser as that should work better Add chromium package back, also waybar rewrite and window rules, set as default browser for mimeapps Update chromium configs; Add ManagedBookmarks and alphabetise the other config options. Add ublock-origin, simplelogin and catppuccin theme plugins
This commit is contained in:
parent
fea8c65c57
commit
077b04ca73
|
@ -19,7 +19,6 @@
|
||||||
../avizo/default.nix
|
../avizo/default.nix
|
||||||
../alacritty/default.nix
|
../alacritty/default.nix
|
||||||
../emacs/default.nix
|
../emacs/default.nix
|
||||||
../nyxt/default.nix
|
|
||||||
../obs/default.nix
|
../obs/default.nix
|
||||||
../cava/default.nix
|
../cava/default.nix
|
||||||
];
|
];
|
||||||
|
@ -197,8 +196,8 @@
|
||||||
++ (lib.lists.forEach layers ignorealpha);
|
++ (lib.lists.forEach layers ignorealpha);
|
||||||
windowrule = [
|
windowrule = [
|
||||||
# Workspace binds
|
# Workspace binds
|
||||||
"workspace 2, firefox"
|
"workspace 2, (chromium-browser|firefox)"
|
||||||
"workspace 4, (com.obsproject.Studio|WebCord|signal|teams-for-linux)"
|
"workspace 4, (com.obsproject.Studio|WebCord|signal)"
|
||||||
"workspace 5 silent, (steam|org.prismlauncher.PrismLauncher)" # Keep silent to avoid popups taking focus
|
"workspace 5 silent, (steam|org.prismlauncher.PrismLauncher)" # Keep silent to avoid popups taking focus
|
||||||
"workspace 6, (x2goclient|Nxplayer.bin)"
|
"workspace 6, (x2goclient|Nxplayer.bin)"
|
||||||
|
|
||||||
|
|
|
@ -48,12 +48,13 @@
|
||||||
"Nyxt - (.*)" = " $1";
|
"Nyxt - (.*)" = " $1";
|
||||||
"Mozilla Firefox" = " $1";
|
"Mozilla Firefox" = " $1";
|
||||||
"(.*) — Mozilla Firefox" = " $1";
|
"(.*) — Mozilla Firefox" = " $1";
|
||||||
|
"(.*) - Chromium" = " $1";
|
||||||
"((?:.*)WebCord.*)" = " $1";
|
"((?:.*)WebCord.*)" = " $1";
|
||||||
"(Signal.*)" = " $1";
|
"(Signal.*)" = " $1";
|
||||||
"(WhatsApp for Linux.*)" = " $1";
|
"(WhatsApp for Linux.*)" = " $1";
|
||||||
"([Ss]team)" = " $1";
|
"([Ss]team)" = " $1";
|
||||||
"(Prism Launcher.*)" = " Minecraft ($1)";
|
"(Prism Launcher.*)" = " Minecraft ($1)";
|
||||||
"Microsoft Teams(?: classic)?(?: - )?(.*)(?: \| Microsoft Teams)?" = " $1";
|
"(.*) Microsoft Teams(?: classic)" = "$1 ";
|
||||||
"(X2Go Client)" = " $1";
|
"(X2Go Client)" = " $1";
|
||||||
"(NoMachine|Nxplayer.bin) (.*)" = " $1 $2";
|
"(NoMachine|Nxplayer.bin) (.*)" = " $1 $2";
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,12 +10,7 @@
|
||||||
etc."ppp/options".text = ''
|
etc."ppp/options".text = ''
|
||||||
ipcp-accept-remote
|
ipcp-accept-remote
|
||||||
'';
|
'';
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [openfortivpn samba nomachine-client];
|
||||||
openfortivpn
|
|
||||||
samba
|
|
||||||
teams-for-linux
|
|
||||||
nomachine-client
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
services.ollama.enable = true;
|
services.ollama.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
imports = [../Scorch/home.nix];
|
imports = [../Scorch/home.nix];
|
||||||
home.packages = [(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")];
|
home.packages = [(pkgs.writeShellScriptBin "ukaea-vpn-connect" "sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf}")];
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
workspace = ["3, monitor:eDP-1, default:true"];
|
workspace = ["2, monitor:eDP-1, default:true"];
|
||||||
monitor = ["eDP-1,1920x1080,2560x576,1.20"];
|
monitor = ["eDP-1,1920x1080,2560x576,1.20"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,7 @@
|
||||||
etc."ppp/options".text = ''
|
etc."ppp/options".text = ''
|
||||||
ipcp-accept-remote
|
ipcp-accept-remote
|
||||||
'';
|
'';
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [openfortivpn samba nomachine-client];
|
||||||
openfortivpn
|
|
||||||
samba
|
|
||||||
teams-for-linux
|
|
||||||
nomachine-client
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
services.ollama.enable = true;
|
services.ollama.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,21 @@
|
||||||
{...}: {
|
{pkgs, ...}: {
|
||||||
|
environment.systemPackages = [pkgs.chromium];
|
||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultSearchProviderEnabled = true;
|
defaultSearchProviderEnabled = true;
|
||||||
defaultSearchProviderSearchURL = "https://search.atlas.engineer/searxng/search?q={searchTerms}";
|
defaultSearchProviderSearchURL = "https://search.atlas.engineer/searxng/search?q={searchTerms}";
|
||||||
defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}";
|
defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}";
|
||||||
|
extensions = [
|
||||||
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||||
|
"dphilobhebphkdjbpfohgikllaljmgbn" # simplelogin
|
||||||
|
"bkkmolkhemgaeaeggcmfbghljjjoofoh" # catppuccin mocha theme
|
||||||
|
];
|
||||||
extraOpts = {
|
extraOpts = {
|
||||||
|
"AllowDinosaurEasterEgg" = true;
|
||||||
|
"AllowSystemNotifications" = true;
|
||||||
|
"AutoFillEnabled" = false;
|
||||||
|
"BookmarkBarEnabled" = true;
|
||||||
|
"BrowserLabsEnabled" = false;
|
||||||
"BrowserSignin" = 0;
|
"BrowserSignin" = 0;
|
||||||
"ClearBrowsingDataOnExitList" = [
|
"ClearBrowsingDataOnExitList" = [
|
||||||
"browsing_history"
|
"browsing_history"
|
||||||
|
@ -18,18 +29,91 @@
|
||||||
];
|
];
|
||||||
"DefaultBrowserSettingEnabled" = false;
|
"DefaultBrowserSettingEnabled" = false;
|
||||||
"DeviceAutoUpdateDisabled" = true;
|
"DeviceAutoUpdateDisabled" = true;
|
||||||
"SyncDisabled" = true;
|
"HomepageIsNewTabPage" = false;
|
||||||
"PasswordManagerEnabled" = false;
|
"PasswordManagerEnabled" = false;
|
||||||
|
"RestoreOnStartup" = 5;
|
||||||
|
"ShoppingListEnabled" = false;
|
||||||
|
"ShowHomeButton" = false;
|
||||||
"SpellcheckEnabled" = true;
|
"SpellcheckEnabled" = true;
|
||||||
"SpellcheckLanguage" = ["en-GB"];
|
"SpellcheckLanguage" = ["en-GB"];
|
||||||
"AllowDinosaurEasterEgg" = true;
|
"SpellCheckServiceEnabled" = false;
|
||||||
"AllowSystemNotifications" = true;
|
"SyncDisabled" = true;
|
||||||
"AutoFillEnabled" = false;
|
# Bookmarks
|
||||||
"BrowserLabsEnabled" = false;
|
"ManagedBookmarks" = [
|
||||||
"BookmarkBarEnabled" = false;
|
{toplevel_name = "Managed Bookmarks";}
|
||||||
"ShowHomeButton" = false;
|
{
|
||||||
"HomepageIsNewTabPage" = false;
|
name = "Messaging";
|
||||||
"RestoreOnStartup" = 5;
|
children = [
|
||||||
|
{
|
||||||
|
name = "WhatsApp Web";
|
||||||
|
url = "https://web.whatsapp.com/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Discord";
|
||||||
|
url = "https://discord.com/login"; # TODO update to proper webapp URL
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Microsoft Teams";
|
||||||
|
url = "https://teams.microsoft.com";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Server";
|
||||||
|
children = [
|
||||||
|
{
|
||||||
|
name = "Home Page";
|
||||||
|
url = "https://xenia.me.uk";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Forgejo";
|
||||||
|
url = "https://git.xenia.me.uk";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Grafana Dashboard";
|
||||||
|
url = "https://grafana.xenia.me.uk";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Documentation";
|
||||||
|
children = [
|
||||||
|
{
|
||||||
|
name = "NixOS and Flakes";
|
||||||
|
url = "https://nixos-and-flakes.thiscute.world/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Home Manager Configuration Options";
|
||||||
|
url = "https://nix-community.github.io/home-manager/options.xhtml";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Home Manager Option Search";
|
||||||
|
url = "https://mipmip.github.io/home-manager-option-search/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Mozilla Policy Templates";
|
||||||
|
url = "https://mozilla.github.io/policy-templates/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Chrome Enterprise Policy List";
|
||||||
|
url = "https://chromeenterprise.google/policies/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Awesome Repos";
|
||||||
|
children = [
|
||||||
|
{
|
||||||
|
name = "Emacs";
|
||||||
|
url = "https://github.com/emacs-tw/awesome-emacs";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Hyprland";
|
||||||
|
url = "https://github.com/hyprland-community/awesome-hyprland";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./desktop.nix ./firefox.nix ./chromium.nix];
|
imports = [./desktop.nix ./chromium.nix];
|
||||||
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||||
environment = {
|
environment = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
@ -51,9 +51,7 @@
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.mime = let
|
xdg.mime = let
|
||||||
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
||||||
# TODO add nyxt back to browser when I can fix opening
|
browser = ["chromium.desktop"];
|
||||||
# links in existing sessions
|
|
||||||
browser = ["firefox.desktop"]; # nyxt.desktop
|
|
||||||
applications = {
|
applications = {
|
||||||
"inode/directory" = emacs;
|
"inode/directory" = emacs;
|
||||||
"inode/symlink" = emacs;
|
"inode/symlink" = emacs;
|
||||||
|
@ -109,11 +107,11 @@
|
||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/chrome" = browser;
|
"x-scheme-handler/chrome" = browser;
|
||||||
"x-scheme-handler/webcal" = browser;
|
"x-scheme-handler/webcal" = browser;
|
||||||
|
"x-scheme-handler/unknown" = emacs;
|
||||||
# "x-scheme-handler/ms-word" = emacs;
|
# "x-scheme-handler/ms-word" = emacs;
|
||||||
# "x-scheme-handler/ms-powerpoint" = emacs;
|
# "x-scheme-handler/ms-powerpoint" = emacs;
|
||||||
# "x-scheme-handler/ms-excel" = emacs;
|
# "x-scheme-handler/ms-excel" = emacs;
|
||||||
"x-scheme-handler/unknown" = emacs;
|
# "x-scheme-handler/msteams" = ["teams-for-linux.desktop"];
|
||||||
"x-scheme-handler/msteams" = ["teams-for-linux.desktop"];
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue