diff --git a/.config/home-manager/flake.nix b/.config/home-manager/flake.nix index 48a7b07..8f63eb5 100644 --- a/.config/home-manager/flake.nix +++ b/.config/home-manager/flake.nix @@ -7,47 +7,15 @@ home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, home-manager, ... }: let - system = builtins.currentSystem; - pkgs = import nixpkgs { inherit system; }; - - # Grab hostname from environment - hostname = builtins.getEnv "HOSTNAME"; - in { - # -------- Standalone Home Manager (macOS / non-NixOS Linux) -------- + outputs = { self, nixpkgs, ... }@inputs: { homeConfigurations = { - "${hostname}" = home-manager.lib.homeManagerConfiguration { + mecca = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ ./common.nix - ./${hostname}/home.nix + ./mecca/home.nix ]; }; }; - - # -------- NixOS Integration -------- - nixosConfigurations = { - "${hostname}" = nixpkgs.lib.nixosSystem { - inherit system; - modules = [ - ./configuration.nix - - # Enable Home Manager as NixOS module - home-manager.nixosModules.home-manager - - { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - - home-manager.users.lunita = { - imports = [ - ./common.nix - ./${hostname}/home.nix - ]; - }; - } - ]; - }; - }; - }; + } }