Compare commits

..

No commits in common. "aaef2d8a4b7c2cd3ffd312a308781d649e45d106" and "3cf6b93eb5c4f58dd7efb68ae47715f90dcfc299" have entirely different histories.

2 changed files with 9 additions and 16 deletions

View File

@ -1,13 +1,8 @@
nixfiles: final: prev:
let
inherit (final) lib callPackage fetchFromGitHub;
inherit (lib) recurseIntoAttrs optionalAttrs
versionOlder versionAtLeast;
pickFixed = ours: theirs: if versionAtLeast ours.version theirs.version then ours else theirs;
pickNewer = ours: theirs: if versionOlder theirs.version ours.version then ours else theirs;
optionalPkg = cond: val: if cond then val else null;
inherit (prev) lib callPackage fetchFromGitHub;
inherit (prev.lib) recurseIntoAttrs optionalAttrs;
isNewer = ref: ver: (builtins.compareVersions ver ref) == 1;
gimp-with-plugins-good = let
badPlugins = [ "gap" ];
@ -16,9 +11,6 @@ let
filteredPlugins = lib.filterAttrs pluginFilter prev.gimpPlugins;
plugins = lib.mapAttrsToList (_: v: v) filteredPlugins;
in prev.gimp-with-plugins.override { inherit plugins; };
# this also causes an infinite recursion and i have no idea why
# in nixfiles.inputs.nixpkgs.lib.filterAttrs (k: v: v != null) {
in {
gimp-with-plugins = gimp-with-plugins-good;
@ -34,3 +26,9 @@ in {
notOlder = (builtins.compareVersions redlib-new.version redlib.version) >= 0;
in if notOlder then redlib-new else redlib;
}
# # can't optionalAttrs for version checks because it breaks lazy eval and causes infinite recursion
# // {
# obsidian = let
# pkg = final.callPackage "${nixfiles.inputs.nixpkgs-unstable}/pkgs/applications/misc/obsidian" { electron = final.electron_28; };
# in if isNewer "1.4.16" prev.obsidian.version then prev.obsidian else pkg;
# }

View File

@ -32,11 +32,6 @@ in
};
};
# enable filesystems
boot.supportedFilesystems = {
exfat = mkDefault true;
};
# probably unnecessary, this will be enabled by whatever session i use
# Enable the X11 windowing system.
# services.xserver.enable = true;