37 lines
961 B
Nix
37 lines
961 B
Nix
# modules/default.nix — Export all m3ta-home modules as a HM module set.
|
|
#
|
|
# This allows nixos-config to import all modules at once:
|
|
# imports = [ inputs.m3ta-home.homeManagerModules.default ];
|
|
#
|
|
# Individual modules declare their own options (mkEnableOption etc.)
|
|
# and are activated by mkHome's import mechanism.
|
|
{
|
|
inputs,
|
|
selfPath,
|
|
}: let
|
|
lib = inputs.nixpkgs.lib;
|
|
in {
|
|
default = {
|
|
imports = [
|
|
# Paths — must be first, provides m3taHome.paths.srcRoot
|
|
./paths.nix
|
|
|
|
# Profiles
|
|
./../profiles/base
|
|
./../profiles/contexts/desktop
|
|
./../profiles/contexts/server
|
|
./../profiles/sets/coding
|
|
./../profiles/sets/gaming
|
|
./../profiles/sets/media
|
|
|
|
# Users
|
|
./../users/m3tam3re/preferences
|
|
./../users/m3tam3re/identities/private.nix
|
|
./../users/m3tam3re/identities/work.nix
|
|
];
|
|
|
|
# Set the source root for asset path resolution
|
|
m3taHome.paths.srcRoot = selfPath;
|
|
};
|
|
}
|