about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-04 14:57:03 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-04 14:57:03 -0800
commit1a10199f80ff811a69ba64ef730d998ee8e9dd48 (patch)
tree44529fa8801e3566fa38ac167ab943914bcb3f5b
parentcommon macos preferences are moved to a module (diff)
downloadworld-1a10199f80ff811a69ba64ef730d998ee8e9dd48.tar.gz
create profiles for home-manager
To make it easier to support multiple systems with this configuration,
move the current configuration for my personal machine to a profile
named `personal.nix`.

When I add a work machine the profile can be named `work.nix` and all
configurations related to that system will live there.
-rw-r--r--hosts/mba/default.nix2
-rw-r--r--nix/profiles/home-manager/personal.nix (renamed from home/darwin.nix)14
2 files changed, 8 insertions, 8 deletions
diff --git a/hosts/mba/default.nix b/hosts/mba/default.nix
index 6efbddb..081e22a 100644
--- a/hosts/mba/default.nix
+++ b/hosts/mba/default.nix
@@ -21,5 +21,5 @@
 
   home-manager.useGlobalPkgs = true;
   home-manager.useUserPackages = true;
-  home-manager.users.fcuny = import ../../home/darwin.nix;
+  home-manager.users.fcuny = import ../../nix/profiles/home-manager/personal.nix;
 }
diff --git a/home/darwin.nix b/nix/profiles/home-manager/personal.nix
index defd381..9072d63 100644
--- a/home/darwin.nix
+++ b/nix/profiles/home-manager/personal.nix
@@ -1,13 +1,13 @@
-{ config, pkgs, ... }:
-{
+{ config, pkgs, ... }: {
+
   home.stateVersion = "23.05";
 
   imports = [
-    ./dev.nix
-    ./firefox.nix
-    ./git.nix
-    ./ssh.nix
-    ./zsh.nix
+    ../../../home/dev.nix
+    ../../../home/firefox.nix
+    ../../../home/git.nix
+    ../../../home/ssh.nix
+    ../../../home/zsh.nix
   ];
 
   home.packages = with pkgs; [