2020-04-27 05:39:00 +04:00
|
|
|
{ pkgs, config, lib, inputs, ... }:
|
2020-02-17 17:00:59 +04:00
|
|
|
let
|
|
|
|
filterGit =
|
|
|
|
builtins.filterSource (type: name: name != ".git" || type != "directory");
|
2020-04-28 21:48:57 +04:00
|
|
|
system = "x86_64-linux";
|
|
|
|
old = import inputs.nixpkgs-old ({
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
localSystem = { inherit system; };
|
|
|
|
});
|
|
|
|
in {
|
2020-02-17 17:00:59 +04:00
|
|
|
nixpkgs.overlays = [
|
2020-04-28 21:48:57 +04:00
|
|
|
inputs.nix.overlay
|
2020-02-17 17:00:59 +04:00
|
|
|
(self: super:
|
|
|
|
rec {
|
2020-04-28 21:48:57 +04:00
|
|
|
nix = super.nix // {
|
|
|
|
meta = super.nix.meta // { platforms = lib.platforms.unix; };
|
|
|
|
};
|
|
|
|
|
|
|
|
nur = (import inputs.NUR {
|
|
|
|
pkgs = old;
|
|
|
|
nurpkgs = pkgs;
|
|
|
|
}).repos;
|
2020-02-17 17:00:59 +04:00
|
|
|
|
2020-06-21 22:48:26 +04:00
|
|
|
inherit (nur.balsoft.pkgs) termNote nix-patch;
|
|
|
|
|
2020-05-10 01:51:05 +04:00
|
|
|
inherit (old) mautrix-telegram;
|
|
|
|
|
2020-07-03 12:59:36 +04:00
|
|
|
inherit (inputs.lambda-launcher.packages.x86_64-linux) lambda-launcher;
|
|
|
|
|
2020-05-22 22:30:25 +04:00
|
|
|
inherit old;
|
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
yt-utilities =
|
|
|
|
import (self.fetchgit config.secrets.yt-utilities.source) { };
|
|
|
|
|
|
|
|
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
|
|
|
|
|
2020-07-28 14:02:32 +04:00
|
|
|
|
|
|
|
|
2020-04-28 21:48:57 +04:00
|
|
|
mobile-broadband-provider-info =
|
|
|
|
super.mobile-broadband-provider-info.overrideAttrs (oa: {
|
|
|
|
src = inputs.mobile-broadband-provider-info;
|
|
|
|
nativeBuildInputs = [ self.autoreconfHook ];
|
|
|
|
buildInputs = [ self.libxslt ];
|
|
|
|
});
|
2020-05-08 09:20:58 +04:00
|
|
|
})
|
2020-02-17 17:00:59 +04:00
|
|
|
];
|
2020-04-27 05:39:00 +04:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
android_sdk.accept_license = true;
|
|
|
|
firefox.enablePlasmaBrowserIntegration = true;
|
|
|
|
};
|
|
|
|
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
2020-02-17 17:00:59 +04:00
|
|
|
nix = rec {
|
|
|
|
nixPath = lib.mkForce [
|
|
|
|
"nixpkgs=/etc/nixpkgs"
|
|
|
|
];
|
2020-04-25 04:41:29 +04:00
|
|
|
binaryCaches = [ "https://cache.nixos.org" "https://cache.balsoft.ru" ];
|
2020-02-17 17:00:59 +04:00
|
|
|
|
2020-05-22 22:30:25 +04:00
|
|
|
registry.self.flake = inputs.self;
|
2020-05-09 13:27:10 +04:00
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
trustedUsers = [ "root" "balsoft" "@wheel" ];
|
|
|
|
|
2020-05-06 00:55:25 +04:00
|
|
|
nrBuildUsers = 16;
|
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
optimise.automatic = true;
|
|
|
|
|
2020-04-25 04:41:29 +04:00
|
|
|
binaryCachePublicKeys =
|
|
|
|
[ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
2020-04-27 03:35:49 +04:00
|
|
|
|
2020-05-06 00:55:25 +04:00
|
|
|
package = inputs.nix.packages.x86_64-linux.nix;
|
2020-04-27 05:39:00 +04:00
|
|
|
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2020-05-20 19:41:56 +04:00
|
|
|
requireSignedBinaryCaches = false;
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
|
|
|
}
|