feat: initial version of the full setup

This commit is contained in:
Xavier Morel
2025-10-23 19:36:05 +02:00
commit cc957061de
12 changed files with 841 additions and 0 deletions

57
infra/lxc-template.nix Normal file
View File

@@ -0,0 +1,57 @@
{
pkgs,
lib,
modulesPath,
...
}:
let
infra = import ./constants.nix;
in
{
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
];
boot.isContainer = true;
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
environment.systemPackages = with pkgs; [
vim
openssl
coreutils
];
services.openssh.enable = true;
services.chrony = {
enable = true;
enableNTS = true;
servers = [ "time.cloudflare.com" ];
};
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
time.timeZone = infra.default_tz;
users.users.root = {
openssh.authorizedKeys.keys = [
infra.master_public_ssh_key
];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = "25.11";
}