2021-12-16 06:38:55 +01:00
|
|
|
{ depot, pkgs, ... }:
|
2021-12-17 00:29:59 +01:00
|
|
|
{ ... }:
|
2021-12-16 06:38:55 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (depot.users.wpcarro) keys;
|
|
|
|
in {
|
|
|
|
imports = [
|
2021-12-17 00:29:59 +01:00
|
|
|
(pkgs.path + "/nixos/modules/virtualisation/google-compute-image.nix")
|
2021-12-16 06:38:55 +01:00
|
|
|
];
|
|
|
|
|
2021-12-17 00:29:59 +01:00
|
|
|
networking.hostName = "diogenes";
|
|
|
|
|
2021-12-16 06:38:55 +01:00
|
|
|
# Use the TVL binary cache
|
|
|
|
tvl.cache.enable = true;
|
|
|
|
|
|
|
|
# Use 100G volume for /nix
|
|
|
|
fileSystems."/nix" = {
|
2021-12-17 00:29:59 +01:00
|
|
|
device = "/dev/disk/by-uuid/62396bde-9002-4025-83eb-2a6c731b7adc";
|
2021-12-16 06:38:55 +01:00
|
|
|
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";
|
|
|
|
}
|