diff --git a/flake.nix b/flake.nix index ac41ba2..5fb12a0 100644 --- a/flake.nix +++ b/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"; }; }; } diff --git a/hosts/bootstrap/config.nix b/hosts/bootstrap/config.nix new file mode 100644 index 0000000..7eeca52 --- /dev/null +++ b/hosts/bootstrap/config.nix @@ -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" ]; + }; +} \ No newline at end of file diff --git a/hosts/bootstrap/home.nix b/hosts/bootstrap/home.nix new file mode 100644 index 0000000..19833aa --- /dev/null +++ b/hosts/bootstrap/home.nix @@ -0,0 +1,5 @@ +{ ... }: { + imports = [ + ../../modules/home + ]; +} \ No newline at end of file diff --git a/modules/home/default.nix b/modules/home/default.nix index f0cd6cd..4cf83c3 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -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 ]; diff --git a/modules/home/desktop.nix b/modules/home/desktop.nix index b586d3c..ac489a9 100644 --- a/modules/home/desktop.nix +++ b/modules/home/desktop.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 = {