tvl-depot/users/wpcarro/nixos/diogenes/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1 KiB
Nix
Raw Normal View History

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