59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ pkgs, lib, modulesPath, ... }: {
|
|
imports = [ "${modulesPath}/virtualisation/google-compute-image.nix" ];
|
|
|
|
config = {
|
|
system.stateVersion = "23.11";
|
|
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
|
|
|
networking.nameservers = [ "8.8.8.8" ];
|
|
|
|
virtualisation.containers.enable = true;
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
autoPrune.enable = true;
|
|
};
|
|
|
|
nix = {
|
|
settings.auto-optimise-store = true;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
'';
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 60d --max-freed $((1024**3))";
|
|
};
|
|
};
|
|
|
|
users.extraUsers.didier = {
|
|
createHome = true;
|
|
isNormalUser = true;
|
|
home = "/home/didier";
|
|
description = "didier";
|
|
group = "users";
|
|
extraGroups = [ "wheel" ];
|
|
useDefaultShell = true;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILtqtELim0nDxVG0j/IJc/ZcWYfFBCay8fVIw/16ieDy didier.amyot@all-dressed-programming.com"
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
vim
|
|
wget
|
|
vim
|
|
git
|
|
htop
|
|
curl
|
|
bat
|
|
ripgrep
|
|
helix
|
|
];
|
|
|
|
services.openssh.settings.PasswordAuthentication = false;
|
|
|
|
};
|
|
}
|