From 58a49a71a80e9c7fe8b0069e501c25565b3fa88f Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 15 Aug 2024 18:11:33 +0200 Subject: [PATCH] Get things to work --- flake.lock | 6 ++-- home/modules/linux/graphical/default.nix | 2 +- overlay.nix | 45 ++++++++---------------- 3 files changed, 18 insertions(+), 35 deletions(-) diff --git a/flake.lock b/flake.lock index fe19644..104d65d 100644 --- a/flake.lock +++ b/flake.lock @@ -794,11 +794,11 @@ "kak-lsp": { "flake": false, "locked": { - "lastModified": 1719761259, - "narHash": "sha256-2cnjweEU/NgQffF2gav9b6EIXmV9TcSd7214FzW7ekY=", + "lastModified": 1723206901, + "narHash": "sha256-wPCu/VxAMIB+zI0+eDq7lJ/rHJZfe0whYzdoiwrixCc=", "owner": "kakoune-lsp", "repo": "kakoune-lsp", - "rev": "484b19c2e373988ee5ab9afc54ecd6383b8da9bc", + "rev": "ebd370f43cb6e7af634e5f8cadb99cc8c16e1efe", "type": "github" }, "original": { diff --git a/home/modules/linux/graphical/default.nix b/home/modules/linux/graphical/default.nix index 948753b..b1cbe56 100644 --- a/home/modules/linux/graphical/default.nix +++ b/home/modules/linux/graphical/default.nix @@ -60,7 +60,7 @@ in pavucontrol # PulseAudio control panel thunderbird # Email sublime-music # For navidrome - cinny-desktop + # cinny-desktop gajim vivaldi # Audio diff --git a/overlay.nix b/overlay.nix index 98a07ab..c953867 100644 --- a/overlay.nix +++ b/overlay.nix @@ -1,6 +1,7 @@ { nixpkgs, nixpkgs-unstable, nur, ... }@inputs: let overlay-unstable = final: prev: { + stable = import nixpkgs { config.allowUnfree = true; system = prev.system; }; unstable = import nixpkgs-unstable { config.allowUnfree = true; system = prev.system; }; x86 = import nixpkgs-unstable { system = prev.system; config.allowUnsupportedSystem = true; }; }; @@ -86,6 +87,13 @@ let }) ]; }; + + # https://github.com/NixOS/nixpkgs/issues/334822 + vulkan-validation-layers = prev.vulkan-validation-layers.overrideAttrs (attrs: { + buildInputs = attrs.buildInputs ++ [ + final.spirv-tools + ]; + }); }; overlay-libs = final: prev: { @@ -108,35 +116,11 @@ let }; }; - overlay-aarch64-linux = final: prev: - let - optionalOverride = pkg: alt: - if prev.stdenv.isLinux && prev.stdenv.isAarch64 then alt else pkg; - in - { - # See https://github.com/sharkdp/fd/issues/1085 - fd = optionalOverride prev.fd (prev.fd.overrideAttrs (attrs: { - preBuild = '' - export JEMALLOC_SYS_WITH_LG_PAGE=16 - ''; - })); - # See https://www.reddit.com/r/AsahiLinux/comments/zqejue/kitty_not_working_with_mesaasahiedge/ - kitty = optionalOverride prev.kitty (final.writeShellApplication { - name = "kitty"; - runtimeInputs = [ ]; - text = '' - MESA_GL_VERSION_OVERRIDE=3.3 MESA_GLSL_VERSION_OVERRIDE=330 ${prev.kitty}/bin/kitty "$@" - ''; - }); - # Zotero does not have their own aarch64-linux build - zotero = optionalOverride prev.zotero (final.callPackage ./packages/aarch64-linux/zotero.nix { }); - # Typora for aarch64-linux only - typora = optionalOverride - (builtins.abort "no support for non-aarch64-linux") - (final.callPackage ./packages/aarch64-linux/typora.nix { }); - }; - - overlay-asahi = inputs.nixos-m1.overlays.default; + overlay-rust-is-dumb = final: prev: { + # Use stable delta compiled with old Rust version + delta = final.stable.delta; + deepfilternet = final.stable.deepfilternet; + }; in [ # inputs.swayfx.inputs.scenefx.overlays.override @@ -151,8 +135,7 @@ in overlay-imported overlay-versioning overlay-libs - overlay-asahi - overlay-aarch64-linux + overlay-rust-is-dumb nur.overlay (import ./packages/common)