From b4cd2ebb0867c9d21a2efe87c19e1344d4cf6270 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 14 Dec 2025 00:05:10 +0100 Subject: [PATCH] Linked my nixos HM config to the shared one --- hosts/common/home.nix | 10 +++++++++- hosts/nixos/home.nix | 26 +++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) 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.