Compare commits

..

3 Commits

Author SHA1 Message Date
4e2162c751
Update flake.lock 2024-03-15 01:54:12 -04:00
09066b737a
rework backports to support time based expiration 2024-03-15 01:22:38 -04:00
4e8b112976
move wsl binfmt configuration to host
apparently a mkIf can't contain a nonexistent option even if it's never
gonna be evaluated?
2024-03-15 01:18:21 -04:00
6 changed files with 34 additions and 32 deletions

View File

@ -1,5 +1,9 @@
# backports # backports
This is a nixpkgs overlay that contains temporary fixes for build failures or This is a nixpkgs overlay that contains temporary fixes for build failures or
other issues, usually backported from the nixpkgs master branch. Each package other issues, usually backported from the nixpkgs master branch. Each package
defined in this overlay shall automatically disable itself once the upstream defined in this overlay shall automatically disable itself once a certain
package has been updated. condition is met, such as the upstream package being updated or the nixpkgs
modification date passing a certain time.
This is in place because I am extremely forgetful; I will almost certainly
forget to undo a temporary fix later, so this takes care of it for me.

View File

@ -1,8 +1,12 @@
final: prev: nixfiles: final: prev:
let let
inherit (final) callPackage fetchFromGitHub; inherit (prev) callPackage fetchFromGitHub;
inherit (final.lib) recurseIntoAttrs; inherit (prev.lib) recurseIntoAttrs optionalAttrs;
# if you can't do version based just make it time based and deal with it in a
# month if it's not fixed
# 2024-04-10T08:11:11
gap-hold = (nixfiles.inputs.nixpkgs-unstable.lastModified <= 1712751071);
gimpPlugins-gap = let gimpPlugins-gap = let
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Scrumplex"; owner = "Scrumplex";
@ -11,6 +15,4 @@ let
hash="sha256-oat4TwOorFevUMZdBFgaQHx/UKqGW7CGMoOHVgQxVdM="; hash="sha256-oat4TwOorFevUMZdBFgaQHx/UKqGW7CGMoOHVgQxVdM=";
}; };
in recurseIntoAttrs (callPackage "${src}/pkgs/applications/graphics/gimp/plugins" {}); in recurseIntoAttrs (callPackage "${src}/pkgs/applications/graphics/gimp/plugins" {});
in { in (optionalAttrs gap-hold { gimpPlugins = gimpPlugins-gap; })
gimpPlugins = if prev.gimpPlugins.gap.version == "2.6.0" then gimpPlugins-gap else prev.gimpPlugins;
}

36
flake.lock generated
View File

@ -80,11 +80,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710164657, "lastModified": 1710452332,
"narHash": "sha256-l64+ZjaQAVkHDVaK0VHwtXBdjcBD6nLBD+p7IfyBp/w=", "narHash": "sha256-+lKOoQ89fD6iz6Ro7Adml4Sx6SqQcTWII4t1rvVtdjs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "017b12de5b899ef9b64e2c035ce257bfe95b8ae2", "rev": "096d9c04b3e9438855aa65e24129b97a998bd3d9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -174,11 +174,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709391291, "lastModified": 1710415616,
"narHash": "sha256-NJwAgXRKLVuO3YLkGxXIanLvTKN+cJsYwbLoWOa7ODk=", "narHash": "sha256-1qVByzzCcKoCmP8ReUSAjKU5V9pfTLHQIM4WI1tvQ9E=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "contrib", "repo": "contrib",
"rev": "2d4ece4a008feefddc194bde785b1d39f987b5a7", "rev": "75420d09f93346d9d23d5a1e26b42699f6b66cd6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -216,11 +216,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709980437, "lastModified": 1710465727,
"narHash": "sha256-rp1MwfRaZl7TPM4E5i1HxQGJCCfMcIa7dOzTX3SW7ro=", "narHash": "sha256-ta/Ojz+tdf4YjyVXvmuHTlzkTHsFS65Kdp3BfyVcPtA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NixOS-WSL", "repo": "NixOS-WSL",
"rev": "e0b9e6c8ff35c7a28cb6baa02d85a9737a2ee4e9", "rev": "74612685fd6ee5f6d8d1b04903f7009b089d7ee6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -247,11 +247,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1710159071, "lastModified": 1710408871,
"narHash": "sha256-CT0WKgcmlcWZPZL/sSSICN/Vbm4Of0ZDgxc0GFf6sYU=", "narHash": "sha256-YpSGYZR96I8g5OK/Fdm0O4+mHLen6YPA1cPanqqNqT0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0fbcc4b2e8571f4af39be41752581ea09dd9ab06", "rev": "bd5ddf2c6bfafff031edf80221e1ee94e86ca10a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -263,11 +263,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1710021367, "lastModified": 1710420202,
"narHash": "sha256-FuMVdWqXMT38u1lcySYyv93A7B8wU0EGzUr4t4jQu8g=", "narHash": "sha256-MvFKESbq4rUWuaf2RKPNYENaSZEw/jaCLo2gU6oREcM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b94a96839afcc56de3551aa7472b8d9a3e77e05d", "rev": "878ef7d9721bee9f81f8a80819f9211ad1f993da",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -316,11 +316,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710123130, "lastModified": 1710468700,
"narHash": "sha256-EoGL/WSM1M2L099Q91mPKO/FRV2iu2ZLOEp3y5sLfiE=", "narHash": "sha256-YGN6R0nLfB2L57J8T/DX+LcB06QipyYzHSz7AD8B0n0=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "73aca260afe5d41d3ebce932c8d896399c9d5174", "rev": "7ff8e9a04ac7777a3446788cb4018b452157ab8a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -68,7 +68,7 @@
}) })
# various temporary fixes that automatically revert # various temporary fixes that automatically revert
(import ./backports) (import ./backports self)
inputs.hyprwm-contrib.overlays.default inputs.hyprwm-contrib.overlays.default
inputs.rust-overlay.overlays.default inputs.rust-overlay.overlays.default

View File

@ -7,6 +7,7 @@
profile.base.enable = true; profile.base.enable = true;
binfmt.enable = true; binfmt.enable = true;
}; };
wsl.interop.register = true;
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
programs.gnupg.agent = { programs.gnupg.agent = {

View File

@ -33,10 +33,5 @@ in
(lib.mkIf enable { (lib.mkIf enable {
boot.binfmt = {inherit emulatedSystems;}; boot.binfmt = {inherit emulatedSystems;};
}) })
# keep Windows binfmt registration on wsl
(lib.mkIf (cfg.enable && lib.hasAttrByPath [ "wsl" "interop" "register" ] options) {
wsl.interop.register = lib.mkDefault true;
})
]; ];
} }