Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
hostname = "zeta";
system = "aarch64-linux";
username = "mu";
lightweight = true;
};
glyph = mkNixosHost {
hostname = "glyph";
Expand All @@ -100,6 +101,7 @@
hostname = "spore";
system = "x86_64-linux";
username = "mu";
lightweight = true;
};
};

Expand Down
6 changes: 3 additions & 3 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
config,
pkgs,
lib,
hostname,
lightweight,
...
}: {
imports = [
Expand All @@ -16,6 +16,7 @@

rc = lib.mkMerge [
{
development.ai.enable = true;
editor.enable = true;
git.enable = true;
ssh.enable = true;
Expand All @@ -26,9 +27,8 @@
};
}

(lib.mkIf (hostname != "spore" && hostname != "zeta") {
(lib.mkIf (!lightweight) {
development = {
ai.enable = true;
containers.enable = true;
javascript.enable = true;
};
Expand Down
9 changes: 6 additions & 3 deletions lib/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ inputs @ {
hostname,
system,
showBatteryStatus,
lightweight ? false,
}: let
pkgs-stable = import nixpkgs-stable {inherit system;};
hostHomePath = ./../hosts/${hostname}/home.nix;
Expand All @@ -44,14 +45,15 @@ 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;
};
};

mkNixosHost = {
hostname,
system,
username,
lightweight ? false,
}:
nixpkgs.lib.nixosSystem {
inherit system;
Expand All @@ -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;
})
{
Expand All @@ -82,6 +84,7 @@ inputs @ {
mkDarwinHost = {
hostname,
username,
lightweight ? false,
}: let
system = "aarch64-darwin";
in
Expand All @@ -99,7 +102,7 @@ inputs @ {
./../hosts/${hostname}
home-manager.darwinModules.home-manager
(mkHomeManager {
inherit username hostname system;
inherit username hostname system lightweight;
showBatteryStatus = true;
})
{
Expand Down