nixos-server: flake, hardware, readme bootstrap, server-quickstart, TODO

Made-with: Cursor
This commit is contained in:
DannyDannyDanny 2026-02-27 23:18:57 +01:00
parent c51bfaac1e
commit 84a065a3df
7 changed files with 153 additions and 11 deletions

View file

@ -0,0 +1,20 @@
# Minimal server config for NixOS install (copy to /mnt/etc/nixos/configuration.nix on live system)
{ config, lib, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-server";
time.timeZone = "Europe/Copenhagen";
users.users.danny = {
isNormalUser = true;
extraGroups = [ "wheel" ];
# After install, add keys via scp (see server-quickstart or nixos-server.nix comment).
};
services.openssh.enable = true;
}