nixos-server: flake, hardware, readme bootstrap, server-quickstart, TODO
Made-with: Cursor
This commit is contained in:
parent
c51bfaac1e
commit
84a065a3df
7 changed files with 153 additions and 11 deletions
20
nixos/server-install-configuration.nix
Normal file
20
nixos/server-install-configuration.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue