make a bootstrap base config
This commit is contained in:
parent
3df8b1b4de
commit
eea20f2363
5 changed files with 52 additions and 3 deletions
12
flake.nix
12
flake.nix
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
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
|
||||
];
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@
|
|||
./rice/cursor.nix
|
||||
./rice/theme.nix
|
||||
./rice/keybinds.nix
|
||||
./misc/kde-connect.nix
|
||||
./core/zed.nix
|
||||
./core/xdg.nix
|
||||
];
|
||||
|
||||
services = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue