nixos-config/modules/packages.nix

70 lines
1.8 KiB
Nix
Raw Normal View History

2020-04-27 04:39:00 +03:00
{ pkgs, config, lib, inputs, ... }:
2020-02-17 16:00:59 +03:00
let
filterGit =
builtins.filterSource (type: name: name != ".git" || type != "directory");
2020-04-28 20:48:57 +03:00
system = "x86_64-linux";
old = import inputs.nixpkgs-old ({
config = config.nixpkgs.config;
localSystem = { inherit system; };
});
in {
2020-02-17 16:00:59 +03:00
nixpkgs.overlays = [
# inputs.nix.overlay
2020-11-19 13:40:03 +03:00
(self: super: rec {
nix = super.nix // {
meta = super.nix.meta // { platforms = lib.platforms.unix; };
};
2020-04-28 20:48:57 +03:00
2020-11-19 13:40:03 +03:00
nur = (import inputs.NUR {
pkgs = old;
nurpkgs = pkgs;
}).repos;
2020-02-17 16:00:59 +03:00
2020-11-19 13:40:03 +03:00
inherit (nur.balsoft.pkgs) termNote nix-patch;
2020-06-21 21:48:26 +03:00
2020-11-19 13:40:03 +03:00
# inherit (old) mautrix-telegram;
2020-05-10 00:51:05 +03:00
2021-01-13 14:24:22 +03:00
lambda-launcher = inputs.lambda-launcher.defaultPackage.x86_64-linux;
2020-07-03 11:59:36 +03:00
2020-11-19 13:40:03 +03:00
simple-osd = inputs.simple-osd-daemons.packages.x86_64-linux;
2020-09-14 01:47:04 +03:00
2020-11-19 13:40:03 +03:00
inherit old;
2020-05-22 21:30:25 +03:00
2020-11-19 13:40:03 +03:00
yt-utilities = inputs.yt-utilities.defaultPackage.x86_64-linux;
2020-02-17 16:00:59 +03:00
2020-12-10 16:19:57 +03:00
# mopidy-youtube = super.mopidy-youtube.overrideAttrs (_: { src = inputs.mopidy-youtube; });
2020-11-19 13:40:03 +03:00
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
2020-08-25 13:35:54 +03:00
2020-11-19 13:40:03 +03:00
# inherit (inputs.nixpkgs-mesa.legacyPackages.x86_64-linux) sway mesa_drivers;
})
2020-02-17 16:00:59 +03:00
];
2020-04-27 04:39:00 +03:00
nixpkgs.config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
environment.etc.nixpkgs.source = inputs.nixpkgs;
2020-02-17 16:00:59 +03:00
nix = rec {
2020-11-19 13:40:03 +03:00
nixPath = lib.mkForce [ "nixpkgs=/etc/nixpkgs" ];
binaryCaches = [ "https://cache.nixos.org" ];
2020-02-17 16:00:59 +03:00
2020-05-22 21:30:25 +03:00
registry.self.flake = inputs.self;
2020-05-09 12:27:10 +03:00
2020-02-17 16:00:59 +03:00
trustedUsers = [ "root" "balsoft" "@wheel" ];
nrBuildUsers = 16;
2020-02-17 16:00:59 +03:00
optimise.automatic = true;
binaryCachePublicKeys =
[ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
package = inputs.nix.packages.x86_64-linux.nix;
2020-04-27 04:39:00 +03:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2020-05-20 18:41:56 +03:00
requireSignedBinaryCaches = false;
2020-02-17 16:00:59 +03:00
};
}