fix(ops/diogenes): Ensure diogenes builds
diogenes "passed" CI because the file was named configuration.nix (vestage from the NixOS default /etc/nixos/configuration). This CL fixes some issues I encountered after running depot/bin/rebuild-system. TL;DR: - rename configuration.nix -> default.nix to trigger CI - add diogenes to my systems - add public SSH key Change-Id: I24197b8936c201267db6f71f00099dce590eac1d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4388 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: tazjin <mail@tazj.in> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
cecc249c96
commit
06a20ba3df
4 changed files with 12 additions and 6 deletions
58
users/wpcarro/nixos/diogenes/default.nix
Normal file
58
users/wpcarro/nixos/diogenes/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue