Files
m3ta-home/modules/default.nix
T

34 lines
951 B
Nix
Raw Normal View History

2026-05-02 09:08:40 +02:00
# 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: let
lib = inputs.nixpkgs.lib;
# Collect all .nix files recursively from a directory
collectModules = dir:
builtins.filterSource (path: _type:
lib.hasSuffix ".nix" (builtins.baseNameOf path))
dir;
in {
default = {
imports = [
# 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
];
};
}