doc: server git pull without PATH, keep flakes bootstrap config in repo
- nixos-server.nix: comment for pull when sudo git not found - readme: add 'Pull when git is not in PATH' and full-path fallback - add server-configuration-with-flakes.nix for one-time scp to enable flakes Made-with: Cursor
This commit is contained in:
parent
bfe7ae5622
commit
2265cdcaff
3 changed files with 28 additions and 0 deletions
21
nixos/server-configuration-with-flakes.nix
Normal file
21
nixos/server-configuration-with-flakes.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# One-time: copy to server /etc/nixos/configuration.nix then nixos-rebuild switch (enables flakes for daemon).
|
||||
{ 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";
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
users.users.danny = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue