Skip to content

Instantly share code, notes, and snippets.

@exil0867
Created April 17, 2025 17:56
Show Gist options
  • Save exil0867/b002f178c9678b7ddf2eac0a902dc6aa to your computer and use it in GitHub Desktop.
Save exil0867/b002f178c9678b7ddf2eac0a902dc6aa to your computer and use it in GitHub Desktop.
bootstrapped
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "sky";
networking.networkmanager.enable = true;
# Enable SSH for remote access
services.openssh = {
enable = true;
settings.PermitRootLogin = "yes"; # Temporarily allow root login for setup
};
# Set your time zone
time.timeZone = "Africa/Tunis"; # Match your existing configuration
# Create a user account
users.users.exil0681 = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
initialPassword = "temppassword"; # Change this immediately after login
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable flakes
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Basic packages
environment.systemPackages = with pkgs; [
vim git curl wget
];
# This value determines the NixOS release
system.stateVersion = "24.11";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment