fix(nix-monitored)!: put in nixVersions.monitored
Also fix `devShell` - did not correctly use the `monitored` version of `nix` Also apply the overlays to the `pkgs` instance, used by `flake-parts`
This commit is contained in:
parent
be2ad3ccfd
commit
1c809e1460
4 changed files with 44 additions and 33 deletions
|
@ -52,6 +52,7 @@
|
|||
|
||||
nix-monitored = {
|
||||
url = "github:ners/nix-monitored";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
disko = {
|
||||
|
@ -143,7 +144,13 @@
|
|||
"x86_64-darwin"
|
||||
];
|
||||
|
||||
perSystem = { pkgs, ... }: {
|
||||
perSystem = { pkgs, lib, system, ... }: {
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = lib.attrValues outputs.overlays;
|
||||
config = { };
|
||||
};
|
||||
|
||||
# Packages (`nix build`)
|
||||
packages = import ./pkgs { inherit pkgs; };
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
nix = {
|
||||
# Ensure we can work with flakes
|
||||
package = pkgs.nixVersions.latest-monitored;
|
||||
package = pkgs.nixVersions.monitored.latest;
|
||||
|
||||
# extraOptions = ''
|
||||
# # Enable flakes and new 'nix' command
|
||||
|
|
|
@ -35,36 +35,40 @@
|
|||
nix-output-monitor = prev.nix-output-monitor;
|
||||
};
|
||||
|
||||
nixVersions = prev.nixVersions // final.lib.flip final.lib.concatMapAttrs prev.nixVersions (version: package:
|
||||
final.lib.optionalAttrs
|
||||
(final.lib.and
|
||||
(final.lib.all (prefix: ! final.lib.hasPrefix prefix version)
|
||||
# TODO: smarter filtering of deprecated and non-packages
|
||||
[
|
||||
"nix_2_4"
|
||||
"nix_2_5"
|
||||
"nix_2_6"
|
||||
"nix_2_7"
|
||||
"nix_2_8"
|
||||
"nix_2_9"
|
||||
"nix_2_10"
|
||||
"nix_2_11"
|
||||
"nix_2_12"
|
||||
"nix_2_13"
|
||||
"nix_2_14"
|
||||
"nix_2_15"
|
||||
"nix_2_16"
|
||||
"nix_2_17"
|
||||
"unstable"
|
||||
])
|
||||
(final.lib.isDerivation package))
|
||||
{
|
||||
"${version}-monitored" = inputs.nix-monitored.packages.${final.system}.default.override {
|
||||
nix = package;
|
||||
nix-output-monitor = prev.nix-output-monitor;
|
||||
};
|
||||
}
|
||||
);
|
||||
nixVersions = prev.nixVersions // {
|
||||
monitored =
|
||||
final.lib.flip final.lib.concatMapAttrs prev.nixVersions (version: package:
|
||||
final.lib.optionalAttrs
|
||||
(final.lib.and
|
||||
(final.lib.all (prefix: ! final.lib.hasPrefix prefix version)
|
||||
# TODO: smarter filtering of deprecated and non-packages
|
||||
[
|
||||
"nix_2_4"
|
||||
"nix_2_5"
|
||||
"nix_2_6"
|
||||
"nix_2_7"
|
||||
"nix_2_8"
|
||||
"nix_2_9"
|
||||
"nix_2_10"
|
||||
"nix_2_11"
|
||||
"nix_2_12"
|
||||
"nix_2_13"
|
||||
"nix_2_14"
|
||||
"nix_2_15"
|
||||
"nix_2_16"
|
||||
"nix_2_17"
|
||||
"unstable"
|
||||
])
|
||||
(final.lib.isDerivation package))
|
||||
{
|
||||
# NOTE: `lib.getBin` is needed, otherwise the `-dev` output is chosen
|
||||
"${version}" = final.lib.getBin (inputs.nix-monitored.packages.${final.system}.default.override {
|
||||
nix = package;
|
||||
nix-output-monitor = prev.nix-output-monitor;
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
river = prev.river.overrideAttrs (oldAttrs: rec {
|
||||
xwaylandSupport = true;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
extra-experimental-features = nix-command flakes
|
||||
'';
|
||||
nativeBuildInputs = with pkgs; [
|
||||
nix
|
||||
nixVersions.monitored.latest
|
||||
home-manager
|
||||
git
|
||||
wireguard-tools
|
||||
|
|
Loading…
Reference in a new issue