I'm going insane
This commit is contained in:
parent
2dd6a7f99c
commit
71df04cd20
1 changed files with 4 additions and 36 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue