mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: rework flake input
This commit is contained in:
parent
16cbf92ec3
commit
f5755d11a3
11 changed files with 128 additions and 132 deletions
|
|
@ -9,41 +9,36 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
_module.args.pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(_: _: {
|
||||
agenix = inputs'.agenix.packages.default;
|
||||
audio-lint = inputs'.audio-lint.packages.default;
|
||||
})
|
||||
_module.args =
|
||||
let
|
||||
overlays = [
|
||||
(_: _: {
|
||||
agenix = inputs'.agenix.packages.default;
|
||||
audio-lint = inputs'.audio-lint.packages.default;
|
||||
})
|
||||
|
||||
(final: _: {
|
||||
wired = final.fetchFromGitHub {
|
||||
owner = "Toqozz";
|
||||
repo = "wired-notify";
|
||||
rev = "0.10.6";
|
||||
hash = "sha256-AWIV/+vVwDZECZ4lFMSFyuyUKJc/gb72PiBJv6lbhnc=";
|
||||
};
|
||||
})
|
||||
inputs.nur.overlay
|
||||
|
||||
(final: _: {
|
||||
nur = import inputs.nur {
|
||||
nurpkgs = final;
|
||||
pkgs = final;
|
||||
};
|
||||
})
|
||||
|
||||
(_: _: { myPkgs = self'.packages; }) # extend pkgs with my custom set
|
||||
(import ./pins.nix)
|
||||
(import ./patches.nix)
|
||||
];
|
||||
|
||||
config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (inputs.nixpkgs.lib.getName pkg) [
|
||||
"discord"
|
||||
"languagetool"
|
||||
(_: _: { myPkgs = self'.packages; }) # extend pkgs with my custom set
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
pkgs-stable = import inputs.nixpkgs-stable {
|
||||
inherit system;
|
||||
inherit overlays;
|
||||
};
|
||||
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
inherit overlays;
|
||||
|
||||
config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (inputs.nixpkgs.lib.getName pkg) [
|
||||
"discord"
|
||||
"languagetool"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue