blob: afdefce588553fa98f841e2f181d8ab28aae73ba (
plain) (
blame)
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
|
{ depot, pkgs, ... }:
let
inherit (depot.users.wpcarro) keys;
in {
imports = [
"${depot.path}/ops/modules/tvl.nix"
"${pkgs.path}/nixos/modules/virtualisation/google-compute-image.nix"
];
# Use the TVL binary cache
tvl.cache.enable = true;
# Use 100G volume for /nix
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/5a65f6c2-7d55-414d-b693-1928480c9b96";
fsType = "ext4";
};
users = {
mutableUsers = true;
users = {
wpcarro = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = keys.all;
shell = pkgs.fish;
};
};
};
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
fd
fzf
mkpasswd
ripgrep
tldr
tree
vim
];
services = {
depot.automatic-gc = {
enable = true;
interval = "1 hour";
diskThreshold = 16; # GiB
maxFreed = 10; # GiB
preserveGenerations = "14d";
};
};
system.stateVersion = "21.11";
}
|