core.nix is the new minimal layer: user, SSH, fish, nix flakes/gc, locale, and a handful of essential packages. Suitable for any headless host that just needs to be SSHable and manageable. base.nix now imports core.nix and adds the day-to-day quality-of-life layer: avahi, mosh, direnv, nix-ld, earlyoom, zramSwap, CLI tools, and build toolchains. All existing hosts that import base.nix are unchanged. bootstrap is updated to import core.nix directly instead of duplicating the config inline. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
520 B
Nix
27 lines
520 B
Nix
{ config, modulesPath, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
../modules/core.nix
|
|
];
|
|
|
|
nix.settings.sandbox = false;
|
|
|
|
proxmoxLXC = {
|
|
manageNetwork = false;
|
|
privileged = true;
|
|
};
|
|
|
|
networking.hostName = "bootstrap";
|
|
|
|
users.users.alex.openssh.authorizedKeys.keys = [
|
|
# TODO: add your SSH public key here
|
|
];
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
# TODO: add your SSH public key here
|
|
];
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|