I'm going insane

This commit is contained in:
lulusilly 2025-09-01 00:19:02 -04:00
parent 2dd6a7f99c
commit 71df04cd20

View file

@ -7,47 +7,15 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { self, nixpkgs, home-manager, ... }: let outputs = { self, nixpkgs, ... }@inputs: {
system = builtins.currentSystem;
pkgs = import nixpkgs { inherit system; };
# Grab hostname from environment
hostname = builtins.getEnv "HOSTNAME";
in {
# -------- Standalone Home Manager (macOS / non-NixOS Linux) --------
homeConfigurations = { homeConfigurations = {
"${hostname}" = home-manager.lib.homeManagerConfiguration { mecca = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
modules = [ modules = [
./common.nix ./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
];
};
}
];
};
};
};
} }