From 36d0ee851e67d2a700189ee1f37a785f7634b091 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 19 Feb 2025 16:19:07 +0100 Subject: [PATCH 1/2] Flake: Add patch to fix nixpkgs-unstable grup install script --- flake.nix | 7 +++++-- nixpkgs_patches/pr383269.patch | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 nixpkgs_patches/pr383269.patch diff --git a/flake.nix b/flake.nix index af19980..1c6311a 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,9 @@ nixpkgs-unstable-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches { name = "patched-nixpkgs-unstable"; src = nixpkgs-unstable-raw; - patches = []; + patches = [ + ./nixpkgs_patches/pr383269.patch + ]; }; nixpkgs-patched = nixpkgs-raw.legacyPackages.x86_64-linux.applyPatches { name = "patched-nixpkgs"; @@ -172,7 +174,8 @@ then home-manager else home-manager-unstable ) - .nixosModules.home-manager + .nixosModules + .home-manager ( if stable then nix-index-db diff --git a/nixpkgs_patches/pr383269.patch b/nixpkgs_patches/pr383269.patch new file mode 100644 index 0000000..414f921 --- /dev/null +++ b/nixpkgs_patches/pr383269.patch @@ -0,0 +1,22 @@ +From 39dd19122fdabf519c256796df0ed998515990a6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= +Date: Wed, 19 Feb 2025 14:33:33 +0700 +Subject: [PATCH] install-grub: add missing rmtree + +--- + nixos/modules/system/boot/loader/grub/install-grub.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nixos/modules/system/boot/loader/grub/install-grub.pl b/nixos/modules/system/boot/loader/grub/install-grub.pl +index 4a588a75da147..f5ae844da21f9 100644 +--- a/nixos/modules/system/boot/loader/grub/install-grub.pl ++++ b/nixos/modules/system/boot/loader/grub/install-grub.pl +@@ -3,7 +3,7 @@ + use Class::Struct; + use XML::LibXML; + use File::Basename; +-use File::Path qw(make_path); ++use File::Path qw(make_path rmtree); + use File::stat; + use File::Copy; + use File::Copy::Recursive qw(rcopy pathrm); From 922c4924128b7b99c99dfa7221d90f30fcbeb233 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 20 Feb 2025 17:29:53 +0100 Subject: [PATCH 2/2] Desktop/discord: revert vesktop to electron 33 --- roles/desktop/programs/discord.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/desktop/programs/discord.nix b/roles/desktop/programs/discord.nix index 3df1659..eed249b 100644 --- a/roles/desktop/programs/discord.nix +++ b/roles/desktop/programs/discord.nix @@ -4,6 +4,9 @@ withOpenASAR = true; withVencord = true; }; + vesktop = super.vesktop.override { + electron = _self.electron_33; + }; }; in { nixpkgs.overlays = [discordOverlay];