dnf-test/dnf/hosts/templates/install.nix
2025-10-27 00:08:16 -02:00

23 lines
702 B
Nix

# Standalone machine used to install a new host
{ pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.editor = false;
hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true;
users.users.nix = {
uid = 65000;
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keyFiles = [ ./../../../usr/secrets/nix.pub ];
};
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [ vim ];
nix.settings = {
substituters = [ "http://{{gateway}}:8501" ];
};
services.openssh.enable = true;
system.stateVersion = "{{currentStateVersion}}";
}