about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-07-17 06:04:04 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-07-17 06:11:22 +0200
commit85f3d5340e53e2624f65248740ed04cb1f5e94e9 (patch)
treeb6685e31c7c28a2cddd7110bd8d729bdf906b0a9
parent0feae9218e6f922366665e6515bc1a416dbcfa3f (diff)
profiles/base: Add patch for networkd IPv6 fix
The upstream issue is systemd/systemd#3879 and this bug has annoyed me
for a while now. I've also opened a pull request (NixOS/systemd#12) to
the NixOS fork of systemd, but this is pending since almost a month now
and the bug is still annoying as fuck, so let's patch it in vuizvui.

I'm not yet porting this to other machines yet, because I want to test
whether this actually really solves my problem (even though it's exactly
what the upstream bug describes) or whether we need to patch something
else as well.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @devhell (uses networkd as well)
-rw-r--r--modules/user/aszlig/profiles/base.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/user/aszlig/profiles/base.nix b/modules/user/aszlig/profiles/base.nix
index 7174ea16..5115ea25 100644
--- a/modules/user/aszlig/profiles/base.nix
+++ b/modules/user/aszlig/profiles/base.nix
@@ -80,6 +80,14 @@ in {
         checksumType = "mhash";
       };
       nix = super.nixUnstable;
+      # https://github.com/NixOS/systemd/pull/12
+      systemd = super.systemd.overrideDerivation (drv: {
+        patches = (drv.patches or []) ++ lib.singleton (pkgs.fetchpatch {
+          url = "https://github.com/NixOS/systemd/commit/"
+              + "6554550f35a7976f9110aff94743d3576d5f02dd.patch";
+          sha256 = "07l6wx0pb7pvjx8n9j0rwv5n260crbrfg5rh56l5nfan6biv81cl";
+        });
+      }) // { inherit (super.systemd) udev; };
       uqm = super.uqm.override {
         use3DOVideos = true;
         useRemixPacks = true;