Skip to content

Instantly share code, notes, and snippets.

@swarm-protocol
Created November 10, 2025 02:49
Show Gist options
  • Select an option

  • Save swarm-protocol/d6426c61e031cb6208aeb590704f313b to your computer and use it in GitHub Desktop.

Select an option

Save swarm-protocol/d6426c61e031cb6208aeb590704f313b to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-vm";
networking.networkmanager.enable = true;
time.timeZone = "UTC";
users.users.nixos = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
password = "nixos";
};
environment.systemPackages = with pkgs; [ vim git wget curl ];
services.sshd.enable = true;
system.stateVersion = "25.05";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment