forked from Gerschtli/nix-config
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common-config.nix
65 lines (60 loc) · 2.53 KB
/
common-config.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
_:
{ lib, pkgs, homeModules ? [ ], inputs, rootPath, ... }:
{
homeManager = {
baseConfig = {
backupFileExtension = "hm-bak";
extraSpecialArgs = { inherit inputs rootPath; };
sharedModules = homeModules;
useGlobalPkgs = true; # disables options nixpkgs.*
useUserPackages = true;
};
userConfig = host: user: "${rootPath}/hosts/${host}/home-${user}.nix";
};
nix = {
settings = {
# TODO https://discourse.nixos.org/t/merged-list-contains-duplicates/38004
substituters = [
"https://573-bc.cachix.org/"
"https://cache.nixos.org/"
"https://nix-on-droid.cachix.org/"
"https://arm.cachix.org/"
"https://cachix.cachix.org/"
"https://coq.cachix.org/"
"https://devenv.cachix.org"
"https://gerschtli.cachix.org/"
"https://haskell-language-server.cachix.org/"
"https://nix-community.cachix.org/"
"https://nixpkgs-ruby.cachix.org/"
"https://nixvim.cachix.org/"
"https://yazi.cachix.org"
];
trusted-public-keys = lib.mkForce [
"573-bc.cachix.org-1:2XtNmCSdhLggQe4UTa4i3FSDIbYWx/m1gsBOxS6heJs="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-on-droid.cachix.org-1:56snoMJTXmDRC1Ei24CmKoUqvHJ9XCp+nidK7qkMQrU="
"arm.cachix.org-1:K3XjAeWPgWkFtSS9ge5LJSLw3xgnNqyOaG7MDecmTQ8="
"cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
"coq.cachix.org-1:5QW/wwEnD+l2jvN6QRbRRsa4hBHG3QiQQ26cxu1F5tI="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"gerschtli.cachix.org-1:dWJ/WiIA3W2tTornS/2agax+OI0yQF8ZA2SFjU56vZ0="
"haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-ruby.cachix.org-1:vrcdi50fTolOxWCZZkw0jakOnUI1T19oYJ+PRYdK4SM="
"nixvim.cachix.org-1:8xrm/43sWNaE3sqFYil49+3wO5LqCbS4FHGhMCuPNNA="
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
];
experimental-features = [ "nix-command" "flakes" "configurable-impure-env" "auto-allocate-uids" ];
log-lines = 35;
# discourse:nix-flake-update-timeout/17215/5
#flake-registry = null;
flake-registry = "${inputs.flake-registry}/flake-registry.json";
};
package = pkgs.nixVersions.nix_2_19;
registry = {
nixpkgs.flake = inputs.nixpkgs;
nix-config.flake = inputs.self;
};
nixPath = [ "nixpkgs=flake:nixpkgs" ];
};
}