aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-05-08 15:53:48 +0200
committerschererleander <leander@schererleander.de>2025-05-08 15:53:48 +0200
commitc10cade67966a5544f83387f30a99e92f460e6cf (patch)
treefe5e504ba07adcdbd9fa9e28483d0db5bef4f406
parent188374aeb7e1d93035445d188046578e34d2f3e0 (diff)
remove minbrowser overlay
-rw-r--r--flake.nix5
-rw-r--r--overlays/minbrowser.nix78
2 files changed, 1 insertions, 82 deletions
diff --git a/flake.nix b/flake.nix
index 0b21e52..0369436 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,14 +25,10 @@
username = "schererleander";
email = "leander@schererleander.de";
desktop = "nixos";
- pkgs = import nixpkgs {
- overlays = [ (import ./overlays/minbrowser.nix) ];
- };
in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = linux-system;
specialArgs = { inherit inputs; };
- pkgs = pkgs;
modules = [
./hosts/nixos/configuration.nix
@@ -40,6 +36,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit inputs; };
+ home-manager.backupFileExtension = "backup";
home-manager.users.leander = import ./hosts/nixos/home.nix;
home-manager.sharedModules = [
diff --git a/overlays/minbrowser.nix b/overlays/minbrowser.nix
deleted file mode 100644
index 6017c90..0000000
--- a/overlays/minbrowser.nix
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- lib,
- stdenv,
- fetchurl,
-
- dpkg,
- autoPatchelfHook,
-
- libxkbcommon,
- libxcb,
- xorg,
- alsa-lib,
- nss,
- at-spi2-core,
- mesa,
- cairo,
- pango,
- cups,
- gtk3,
- glib,
-
- nix-update-script,
-}:
-
-stdenv.mkDerivation (finalAttrs: let
- system = stdenv.hostPlatform.system;
-
- asset = if lib.strings.hasPrefix "x86_64-linux" system then {
- url = "https://github.com/minbrowser/min/releases/download/v${finalAttrs.version}/min-${finalAttrs.version}-amd64.deb";
- sha256 = "sha256-gpkjGYuHwBY3IwK5bXhzIPPosSTZ67hclmGLT4PTsG4=";
- } else if system == "x86_64-darwin" then {
- url = "https://github.com/minbrowser/min/releases/download/v${finalAttrs.version}/min-v${finalAttrs.version}-mac-x86_64.zip";
- sha256 = "";
- } else if system == "aarch64-darwin" then {
- url = "https://github.com/minbrowser/min/releases/download/v${finalAttrs.version}/min-v${finalAttrs.version}-mac-arm64.zip";
- sha256 = "";
- } else throw "Unsupported plattform: ${system}";
- in {
- pname = "min";
- version = "1.34.1";
-
- src = fetchurl {
- url = asset.url;
- hash = asset.sha256;
- };
-
- nativeBuildInputs = [ autoPatchelfHook ];
- nativeBuildInputs = lib.optional (lib.strings.hasPrefix "x86_64-linux" system) dpkg ++ [ autoPatchelHook ];
-
- buildInputs = [
- libxkbcommon libxcb at-spi2-core mesa cairo cups gtk3 pango
- alsa-lib nss glib stdenv.cc.cc.lib
- ] ++ (with xorg; [ libX11 libXcomposite libXdamage libXext libXfixes libXrandr ]);
-
- unpackPhase = ''
- ${lib.optionalString (lib.strings.hasPrefix "x86_64-linux" system) ''
- dpkg-deb -x $src $out
- mv $out/usr/share $out
- ''}
- ${lib.optionalString (system == "x86_64-darwin" || system == "aarch64-darwin") ''
- unzip $src -d $out
- # the zip contains e.g. Min.app; flatten:
- mv $out/Min.app/Contents/* $out/
- ''}
- mkdir -p $out/bin
- ln -s $out/opt/Min/min $out/bin/min
- '';
-
- passthru.updateScript = nix-update-script { };
-
- meta = {
- description = "Fast, minimal browser that protects your privacy";
- homepage = "https://github.com/minbrowser/min";
- changelog = "https://github.com/minbrowser/min/releases/tag/v${finalAttrs.version}";
- license = lib.licenses.asl20;
- maintainers = with lib.maintainers; [ kashw2 ];
- };
-})