diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 2a389a3..c5f69b1 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -55,7 +55,15 @@ ]; # Git config - + programs.git = { + enable = true; + settings = { + user = { + email = "mateialex@outlook.fr"; + name = "Alexandre"; + }; + }; + }; } diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index 3fe5206..2c2fcd5 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -1,14 +1,17 @@ { config, pkgs, inputs, ... }: -{ +let + commonHome = import ../common/home.nix { + inherit config pkgs inputs; + username = "alex"; + homeDir = "/home/alex"; + }; +in +commonHome // { # Home Manager needs a bit of information about you and the paths it should # manage. - home.username = "alex"; - home.homeDirectory = "/home/alex"; - imports = [ - inputs.spicetify-nix.homeManagerModules.spicetify - ../../modules/home-manager/spicetify.nix + ../../modules/home-manager/hyprland.nix ]; @@ -40,17 +43,6 @@ }; }; - # Git - programs.git = { - enable = true; - settings = { - user = { - email = "mateialex@outlook.fr"; - name = "Alexandre"; - }; - }; - }; - # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes.