From 45d9c4378cf7273ba1f209cba3ecc9d5a387cd00 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 26 Dec 2024 23:50:37 -0800 Subject: [PATCH] chore: use self.homeManagerModules instead of absolute path --- reference/hosts/callisto/default.nix | 5 ++++- reference/hosts/callisto/home.nix | 1 - reference/hosts/demeter/default.nix | 5 ++++- reference/hosts/demeter/home.nix | 1 - reference/users/youwen/default.nix | 5 ----- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/reference/hosts/callisto/default.nix b/reference/hosts/callisto/default.nix index 1e772a9..1c6fd35 100644 --- a/reference/hosts/callisto/default.nix +++ b/reference/hosts/callisto/default.nix @@ -10,7 +10,10 @@ self.nixosModules.liminalOS { home-manager.users.youwen = { - imports = [ ./home.nix ]; + imports = [ + ./home.nix + self.homeManagerModules.default + ]; }; } ] diff --git a/reference/hosts/callisto/home.nix b/reference/hosts/callisto/home.nix index 632b1d8..0c98f20 100644 --- a/reference/hosts/callisto/home.nix +++ b/reference/hosts/callisto/home.nix @@ -1,6 +1,5 @@ { imports = [ - ../../../hm/modules ../../users/youwen ]; diff --git a/reference/hosts/demeter/default.nix b/reference/hosts/demeter/default.nix index 19941ba..906fbef 100644 --- a/reference/hosts/demeter/default.nix +++ b/reference/hosts/demeter/default.nix @@ -10,7 +10,10 @@ self.nixosModules.liminalOS { home-manager.users.youwen = { - imports = [ ./home.nix ]; + imports = [ + ./home.nix + self.homeManagerModules.default + ]; }; } ] diff --git a/reference/hosts/demeter/home.nix b/reference/hosts/demeter/home.nix index cc62b90..f7103b6 100644 --- a/reference/hosts/demeter/home.nix +++ b/reference/hosts/demeter/home.nix @@ -1,7 +1,6 @@ { lib, ... }: { imports = [ - ../../../hm/modules ../../users/youwen ]; diff --git a/reference/users/youwen/default.nix b/reference/users/youwen/default.nix index f7dcbb8..4271851 100644 --- a/reference/users/youwen/default.nix +++ b/reference/users/youwen/default.nix @@ -1,9 +1,4 @@ -{ self, ... }: { - imports = [ - self.homeManagerModules.liminalOS - ]; - home = { username = "youwen"; homeDirectory = "/home/youwen";