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

@ -49,10 +49,22 @@
}
];
};
homeConfig = host: inputs.hm.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./hosts/${host}/home.nix
inputs.ctp.homeModules.catppuccin
];
};
in {
nixosConfigurations = {
thinkpad = nixosConfigWithHome "thinkpad";
homelab = nixosConfig "homelab";
bootstrap = nixosConfig "bootstrap";
};
homeConfigurations = {
bootstrap = homeConfig "bootstrap";
};
};
}

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" ];
};
}

5
hosts/bootstrap/home.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }: {
imports = [
../../modules/home
];
}

View file

@ -1,9 +1,6 @@
{ username, ... }: {
imports = [
./misc/kde-connect.nix
./core/apps.nix
./core/zed.nix
./core/xdg.nix
./core/cli.nix
./core/zsh.nix
];

View file

@ -10,6 +10,9 @@
./rice/cursor.nix
./rice/theme.nix
./rice/keybinds.nix
./misc/kde-connect.nix
./core/zed.nix
./core/xdg.nix
];
services = {