-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.nix
49 lines (43 loc) · 1.02 KB
/
common.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
{
pkgs,
inputs,
config,
...
}:
{
environment.systemPackages = with pkgs; [
curl
git
helix
vim
];
services.timesyncd.enable = false;
services.chrony.enable = true;
boot.loader.systemd-boot.configurationLimit = 10;
security.sudo.execWheelOnly = true;
security.sudo.wheelNeedsPassword = false;
programs.fish.enable = true;
programs.nano.enable = false;
programs.command-not-found.enable = false;
nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
registry = {
nixpkgs.flake = inputs.nixpkgs;
unstable.flake = inputs.nixpkgs-unstable;
};
channel.enable = false;
optimise.automatic = true; # runs `nix store optimise` daily
settings = {
nix-path = config.nix.nixPath;
experimental-features = [
"ca-derivations"
"fetch-closure"
"flakes"
"nix-command"
];
trusted-users = [ "@wheel" ];
auto-optimise-store = false; # don't optimise during builds
builders-use-substitutes = true;
};
};
}