generated from cachix/cachix-deploy-hetzner-dedicated
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.nix
37 lines (33 loc) · 938 Bytes
/
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
{ config, pkgs, lib, ... }:
{
nix.package = pkgs.nixVersions.nix_2_23;
nix.settings.trusted-users = [ "root "];
nix.extraOptions = ''
always-allow-substitutes = true
min-free = ${toString (10 * 1024 * 1024 * 1024)}
max-free = ${toString (30 * 1024 * 1024 * 1024)}
extra-experimental-features = flakes nix-command
!include ${config.age.secrets.nix-access-tokens.path}
'';
environment.systemPackages = with pkgs; [
vim
# zig broken on darwin
#ncdu
git
tmux
cachix
direnv
];
age.secrets.github-runner-token = {
file = ../secrets/github-runner-token.age;
owner = config.cachix.github-runner.group;
group = config.cachix.github-runner.group;
mode = "440";
};
age.secrets.nix-access-tokens = {
file = ../secrets/nix-access-tokens.age;
owner = config.cachix.github-runner.group;
group = config.cachix.github-runner.group;
mode = "440";
};
}