-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasics.nix
60 lines (52 loc) · 1.25 KB
/
basics.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
{ config, pkgs, lib, inputs, ... }:
{
environment.systemPackages = with pkgs; [
vim # emacs
wget git
fd ripgrep lsof eza
fish
htop iotop iftop procs
];
programs.command-not-found.enable = lib.mkDefault false;
services.openssh.enable = true;
# services.zerotierone = {
# enable = true;
# joinNetworks = [ ];
# };
programs.ssh = {
extraConfig = ''
Host *
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
'';
};
services.tailscale.enable = true;
virtualisation.docker.enable = true;
virtualisation.podman.enable = true;
nixpkgs.config.allowUnfree = true;
nix = {
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
flake-registry = /etc/nix/registry.json
download-attempts = 5
connect-timeout = 15
stalled-download-timeout = 10
'';
registry = {
nixpkgs = {
from = { id = "nixpkgs"; type = "indirect"; };
flake = inputs.nixpkgs;
};
};
nixPath = [
"nixpkgs=${inputs.nixpkgs}"
];
settings.auto-optimise-store = true;
gc = {
automatic = true;
options = "--delete-older-than 7d";
dates = "Sun 01:00";
};
};
}