summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.nix9
-rw-r--r--user/lima.nix24
-rw-r--r--user/settings/development/base.nix2
3 files changed, 35 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8e519a36..ddb4ceca 100644
--- a/flake.nix
+++ b/flake.nix
@@ -75,6 +75,15 @@
           (secrets + "/default.nix")
         ];
       };
+      homeConfigurations."alan@nixos" = home-manager.lib.homeManagerConfiguration {
+        pkgs = aarch64LinuxPackages;
+        extraSpecialArgs = { inherit attrs; };
+        modules = [
+          ./user/lima.nix
+          nix-index-database.hmModules.nix-index
+          (secrets + "/default.nix")
+        ];
+      };
       homeConfigurations."alan@pappel" = home-manager.lib.homeManagerConfiguration {
         pkgs = nixosPkgs;
         extraSpecialArgs = { inherit attrs; };
diff --git a/user/lima.nix b/user/lima.nix
new file mode 100644
index 00000000..3ef47c65
--- /dev/null
+++ b/user/lima.nix
@@ -0,0 +1,24 @@
+{ pkgs, ... }:
+{
+  imports = [
+    ./modules/tabnine.nix
+    ./settings/base.nix
+    ./settings/development/base.nix
+    ./settings/git.nix
+    ./settings/nix.nix
+    ./settings/nixos.nix
+    ./settings/ssh.nix
+    ./settings/zsh.nix
+  ];
+  home = {
+    username = "alan";
+    homeDirectory = "/home/alan.linux";
+    stateVersion = "22.11";
+  };
+  # home-manager complains when setting nix.conf otherwise
+  nix.package = pkgs.nix;
+  nix.settings = {
+    max-jobs = 4;
+    experimental-features = "nix-command flakes";
+  };
+}
diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix
index 76453670..b0737677 100644
--- a/user/settings/development/base.nix
+++ b/user/settings/development/base.nix
@@ -37,6 +37,7 @@ in
       then [
         httping
       ] else [
+        lima-bin
         colima
         docker-client
       ]
@@ -48,6 +49,7 @@ in
   ];
   home.sessionVariables = {
     FLY_NO_UPDATE_CHECK = "1";
+    LIMA_INSTANCE = "nixos";
   };
 
   programs.direnv = {