summaryrefslogtreecommitdiff
path: root/configuration/module-fixes.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/module-fixes.nix')
-rw-r--r--configuration/module-fixes.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/configuration/module-fixes.nix b/configuration/module-fixes.nix
new file mode 100644
index 0000000..ee3005c
--- /dev/null
+++ b/configuration/module-fixes.nix
@@ -0,0 +1,18 @@
+{ pkgs, ... }:
+{
+ environment = {
+ # NOTE: This is what prints the fun error message about
+ # binaries not compiled for NixOS not working with it
+ #
+ # It's here because on x86_64 systems, a 32-bit `ld` stub
+ # is built against `pkgs.pkgsi686Linux`; nixpkgs doesn't
+ # support a pure i686 musl bootstrap, so it throws an eval
+ # error. womp womp
+ stub-ld.enable = false;
+ };
+
+ # HACK: nixpkgs instantiated for musl doesn't have glibc locales, so the
+ # default value throws eval errors
+ # This will probably break something
+ i18n.glibcLocales = pkgs.emptyFile;
+}