diff --git a/flake.nix b/flake.nix index f631cee..31c978e 100644 --- a/flake.nix +++ b/flake.nix @@ -90,6 +90,7 @@ hostname = "zeta"; system = "aarch64-linux"; username = "mu"; + lightweight = true; }; glyph = mkNixosHost { hostname = "glyph"; @@ -100,6 +101,7 @@ hostname = "spore"; system = "x86_64-linux"; username = "mu"; + lightweight = true; }; }; diff --git a/home/default.nix b/home/default.nix index 9bd4d35..e218ece 100644 --- a/home/default.nix +++ b/home/default.nix @@ -2,7 +2,7 @@ config, pkgs, lib, - hostname, + lightweight, ... }: { imports = [ @@ -16,6 +16,7 @@ rc = lib.mkMerge [ { + development.ai.enable = true; editor.enable = true; git.enable = true; ssh.enable = true; @@ -26,9 +27,8 @@ }; } - (lib.mkIf (hostname != "spore" && hostname != "zeta") { + (lib.mkIf (!lightweight) { development = { - ai.enable = true; containers.enable = true; javascript.enable = true; }; diff --git a/lib/hosts.nix b/lib/hosts.nix index e14c017..bbc4dce 100644 --- a/lib/hosts.nix +++ b/lib/hosts.nix @@ -23,6 +23,7 @@ inputs @ { hostname, system, showBatteryStatus, + lightweight ? false, }: let pkgs-stable = import nixpkgs-stable {inherit system;}; hostHomePath = ./../hosts/${hostname}/home.nix; @@ -44,7 +45,7 @@ inputs @ { ++ nixpkgs.lib.optionals (hostHomeConfig != null) [hostHomeConfig]; }; home-manager.extraSpecialArgs = { - inherit hostname llm-profile pkgs-stable showBatteryStatus; + inherit hostname lightweight llm-profile pkgs-stable showBatteryStatus; }; }; @@ -52,6 +53,7 @@ inputs @ { hostname, system, username, + lightweight ? false, }: nixpkgs.lib.nixosSystem { inherit system; @@ -68,7 +70,7 @@ inputs @ { agenix.nixosModules.default home-manager.nixosModules.home-manager (mkHomeManager { - inherit username hostname system; + inherit username hostname system lightweight; showBatteryStatus = false; }) { @@ -82,6 +84,7 @@ inputs @ { mkDarwinHost = { hostname, username, + lightweight ? false, }: let system = "aarch64-darwin"; in @@ -99,7 +102,7 @@ inputs @ { ./../hosts/${hostname} home-manager.darwinModules.home-manager (mkHomeManager { - inherit username hostname system; + inherit username hostname system lightweight; showBatteryStatus = true; }) {