Created
April 17, 2025 17:56
-
-
Save exil0867/b002f178c9678b7ddf2eac0a902dc6aa to your computer and use it in GitHub Desktop.
bootstrapped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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