summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/common.nix26
1 files changed, 12 insertions, 14 deletions
diff --git a/config/common.nix b/config/common.nix
index 20bd4dd..7870da6 100644
--- a/config/common.nix
+++ b/config/common.nix
@@ -1,21 +1,8 @@
{ config, lib, pkgs, ... }:
-
-# let
- # myNixpkgs = import (pkgs.fetchFromGitHub {
- # owner = "orbekk";
- # repo = "nixpkgs";
- # rev = "7e4a06c17db1b479e69d2a4f90eede19b1d858cd";
- # sha256 = "06043m672q4ibbsa9pkdzzf0d3c59l4wx5xgfbp29fnf7fy5kifw";
- # }) {};
-# in
{
programs.fish.enable = true;
programs.tmux.enable = true;
- # nixpkgs.config.packageOverrides = pkgs: {
- # luaPackages = myNixpkgs.luaPackages;
- # };
-
environment.shellAliases = {
vim = "nvim";
};
@@ -39,11 +26,22 @@
openssh.passwordAuthentication = false;
};
- nix = {
+ nix = rec {
useSandbox = lib.mkDefault true;
maxJobs = lib.mkOverride 110 16;
buildCores = lib.mkDefault 0; # auto configure
gc.automatic = lib.mkDefault true;
+ nixPath = lib.mkBefore [
+ "orbekk=https://hydra.orbekk.com/project/orbekk-projects/channel/latest/nixexprs.tar.bz2"
+ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs"
+ "nixos-config=/etc/nixos/configuration.nix"
+ "/nix/var/nix/profiles/per-user/root/channels"
+ ];
+ trustedBinaryCaches = [
+ "https://hydra.orbekk.com" "https://cache.nixos.org"
+ ];
+ binaryCaches = trustedBinaryCaches;
+ binaryCachePublicKeys = [ "hydra.orbekk.com-1:aAKJuVqMptWoFfY9fhUADdXw5LM5IfSGjTSobuxg+Bo=" ];
};
boot.cleanTmpDir = true;