make a bootstrap base config

This commit is contained in:
Satria 2026-02-28 19:12:41 +07:00
commit eea20f2363
5 changed files with 52 additions and 3 deletions

View file

@ -0,0 +1,32 @@
{ pkgs, hostname, username, ... }: {
imports = [ ../../hardware-configuration.nix ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "25.11";
time.timeZone = "Asia/Jakarta";
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
kernelPackages = pkgs.linuxPackages_latest;
};
networking = {
hostName = "${hostname}";
networkmanager.enable = true;
};
environment.systemPackages = with pkgs; [
vim git tmux htop
];
services = {
tailscale.enable = true;
openssh = {
enable = true;
settings.PermitRootLogin = "yes";
};
};
users.users."${username}" = {
isNormalUser = true;
initialPassword = "howdy";
extraGroups = [ "wheel" ];
};
}