Clean up overlays

This commit is contained in:
Julian Mutter 2025-04-22 20:50:11 +02:00
parent 07a321c79a
commit 642398da4b
4 changed files with 13 additions and 44 deletions

View File

@ -13,4 +13,17 @@
config.allowUnfree = true;
};
};
input-flake-packages = final: prev: {
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default;
music-reader = inputs.music-reader.defaultPackage.${prev.system};
};
# Makes gparted actually open
gparted-xhost = self: super: {
gparted-xhost = super.gparted.overrideAttrs (oldAttrs: {
configureFlags = oldAttrs.configureFlags ++ [ "--enable-xhost-root" ];
});
};
}

View File

@ -1,20 +0,0 @@
# Snowfall Lib provides access to additional information via a primary argument of
# your overlay.
{
# Channels are named after NixPkgs instances in your flake inputs. For example,
# with the input `nixpkgs` there will be a channel available at `channels.nixpkgs`.
# These channels are system-specific instances of NixPkgs that can be used to quickly
# pull packages into your overlay.
channels,
# Inputs from your flake.
inputs,
...
}:
# Makes gparted actually open
self: super: {
gparted-xhost = super.gparted.overrideAttrs (oldAttrs: {
configureFlags = oldAttrs.configureFlags ++ [ "--enable-xhost-root" ];
});
}

View File

@ -1,5 +0,0 @@
{ inputs, ... }:
final: prev: {
sheet-organizer = inputs.sheet-organizer.packages.${prev.system}.default;
music-reader = inputs.music-reader.defaultPackage.${prev.system};
}

View File

@ -1,19 +0,0 @@
# Snowfall Lib provides access to your current Nix channels and inputs.
#
# Channels are named after NixPkgs instances in your flake inputs. For example,
# with the input `nixpkgs` there will be a channel available at `channels.nixpkgs`.
# These channels are system-specific instances of NixPkgs that can be used to quickly
# pull packages into your overlay.
#
# All other arguments for this function are your flake inputs.
{ nixpkgs, nixpkgs-unstable, ... }:
final: prev: {
unstable = import nixpkgs-unstable {
system = prev.system;
config.allowUnfree = true;
};
stable = import nixpkgs {
system = prev.system;
config.allowUnfree = true;
};
}