Install a browser
- I'll be using chromium due to its speed and compatability, which I've found
firefox has steadily worsened on
- I'll need to store some of its configuration (i.e. its session) so that we can
stay logged in over reboots
- I'll need to store some of its configuration so that keepasss can stay
connected to it
diff --git a/modules/chromium.nix b/modules/chromium.nix
new file mode 100644
index 0000000..2bbcfde
--- /dev/null
+++ b/modules/chromium.nix
@@ -0,0 +1,11 @@
+{
+ pkgs,
+ username,
+ ...
+}: {
+ home.home.packages = [pkgs.chromium];
+
+ config.nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WebUIDarkMode --force-dark-mode --enable-features=WebRTCPipeWireCapturer";
+
+ config.environment.persistence."/nix/persist".users.${username}.directories = [".config/chromium/Default" ".config/chromium/NativeMessagingHosts"];
+}