mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-23 22:19:33 +01:00
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
sources = import ../nix/sources.nix;
|
|
in
|
|
{
|
|
# How NUR (or unstable) can be imported without `niv`.
|
|
#nixpkgs.config.packageOverrides = pkgs: {
|
|
# nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
# inherit pkgs;
|
|
# };
|
|
#};
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
# Import NUR with niv.
|
|
nur = import sources.NUR {
|
|
inherit pkgs;
|
|
};
|
|
# Import unstable with niv.
|
|
unstable = import sources.unstable {
|
|
inherit pkgs;
|
|
|
|
# "unstable" `nixpkgs.config` has to be configured here where we import it.
|
|
# https://github.com/NixOS/nixpkgs/issues/69347#issuecomment-534573461
|
|
config = {
|
|
|
|
# allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
# # Required for unstable.obsidian (see obsidan.nix)
|
|
# "obsidian"
|
|
# ];
|
|
# permittedInsecurePackages = [
|
|
# # Required for unstable.obsidian (see obsidan.nix)
|
|
# "electron-25.9.0"
|
|
# ];
|
|
|
|
};
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
# Import rust-overlay with niv.
|
|
(import sources.rust-overlay)
|
|
];
|
|
|
|
#environment.systemPackages = with pkgs; [
|
|
# # Example NUR usage:
|
|
# nur.repos.mic92.hello-nur
|
|
# # Example unstable usage:
|
|
# unstable.nano
|
|
#];
|
|
}
|