-
Notifications
You must be signed in to change notification settings - Fork 2
/
nix-nixpkgs.nix
44 lines (41 loc) · 1.11 KB
/
nix-nixpkgs.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
{ inputs, ... }:
{ lib, config, ... }:
{
# Use Lix.
imports = [ inputs.lix-module.nixosModules.default ];
nix = {
registry.nixpkgs.flake = inputs.nixpkgs;
channel.enable = false;
nixPath = lib.singleton config.nix.settings.nix-path;
settings = {
experimental-features = [
"nix-command"
"flakes"
"cgroups"
"auto-allocate-uids"
];
nix-path = "nixpkgs=flake:nixpkgs";
use-cgroups = true;
auto-allocate-uids = true;
builders-use-substitutes = true;
warn-dirty = false;
trusted-users = [
"@wheel"
];
allowed-users = lib.mapAttrsToList (_: u: u.name) (lib.filterAttrs (_: user: user.isNormalUser) config.users.users);
http-connections = 0;
max-substitution-jobs = 128;
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
nixpkgs.config = {
allowUnfree = true;
# Needed for nheko
permittedInsecurePackages = [ "olm-3.2.16" ];
};
}