From f918ff5df25054a861a86eb01ef2cf64d93a17b6 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Fri, 24 Oct 2025 14:58:00 +0100 Subject: [PATCH] Try to make cloud hosts work. --- flake.nix | 3 ++- home/profiles/cloud.nix | 22 ++++++++++++++++++++++ home/programs/cloud.nix | 8 ++++++++ hosts/alo-cloud-1/default.nix | 1 - 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 home/profiles/cloud.nix create mode 100644 home/programs/cloud.nix diff --git a/flake.nix b/flake.nix index f9f7189..6ab2d34 100644 --- a/flake.nix +++ b/flake.nix @@ -71,6 +71,7 @@ if profile == "server" then ./common/server-node.nix else if profile == "workstation" then ./common/workstation-node.nix else if profile == "desktop" then ./common/desktop-node.nix + else if profile == "cloud" then ./common/cloud-node.nix else null; in nixpkgs.lib.nixosSystem { @@ -138,7 +139,7 @@ c1 = mkHost "x86_64-linux" "server" [ ./hosts/c1 ]; c2 = mkHost "x86_64-linux" "server" [ ./hosts/c2 ]; c3 = mkHost "x86_64-linux" "server" [ ./hosts/c3 ]; - alo-cloud-1 = mkHost "aarch64-linux" "server" [ ./hosts/alo-cloud-1 ]; + alo-cloud-1 = mkHost "aarch64-linux" "cloud" [ ./hosts/alo-cloud-1 ]; zippy = mkHost "x86_64-linux" "workstation" [ ethereum-nix.nixosModules.default ./hosts/zippy diff --git a/home/profiles/cloud.nix b/home/profiles/cloud.nix new file mode 100644 index 0000000..785d15e --- /dev/null +++ b/home/profiles/cloud.nix @@ -0,0 +1,22 @@ +{ pkgs }: +let + corePkgs = with pkgs; [ + direnv + fzf + git + mosh + ripgrep + tmux + zsh + ]; + + fishPkgs = with pkgs.fishPlugins; [ + pure + # don't add failed commands to history + sponge + transient-fish + ]; +in +{ + packages = corePkgs ++ fishPkgs; +} diff --git a/home/programs/cloud.nix b/home/programs/cloud.nix new file mode 100644 index 0000000..5ce20e5 --- /dev/null +++ b/home/programs/cloud.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + imports = [ ./server.nix ]; + + # Cloud-specific home-manager programs + # Currently uses server profile's minimal CLI setup + # Add cloud-specific customizations here if needed in the future +} diff --git a/hosts/alo-cloud-1/default.nix b/hosts/alo-cloud-1/default.nix index ee790d2..b320478 100644 --- a/hosts/alo-cloud-1/default.nix +++ b/hosts/alo-cloud-1/default.nix @@ -2,7 +2,6 @@ { imports = [ ../../common/global - ../../common/cloud-node.nix ./hardware.nix ./reverse-proxy.nix ];