make a bootstrap base config
This commit is contained in:
parent
3df8b1b4de
commit
eea20f2363
5 changed files with 52 additions and 3 deletions
32
hosts/bootstrap/config.nix
Normal file
32
hosts/bootstrap/config.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
5
hosts/bootstrap/home.nix
Normal file
5
hosts/bootstrap/home.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
../../modules/home
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue