fix: use m3ta-home.paths.srcRoot for wallpapers (pure eval compatible)
This commit is contained in:
@@ -5,17 +5,17 @@
|
||||
#
|
||||
# Individual modules declare their own options (mkEnableOption etc.)
|
||||
# and are activated by mkHome's import mechanism.
|
||||
inputs: let
|
||||
{
|
||||
inputs,
|
||||
selfPath,
|
||||
}: 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 = [
|
||||
# Paths — must be first, provides m3ta-home.paths.srcRoot
|
||||
./paths.nix
|
||||
|
||||
# Profiles
|
||||
./../profiles/base
|
||||
./../profiles/contexts/desktop
|
||||
@@ -29,5 +29,8 @@ in {
|
||||
./../users/m3tam3re/identities/private.nix
|
||||
./../users/m3tam3re/identities/work.nix
|
||||
];
|
||||
|
||||
# Set the source root for asset path resolution
|
||||
m3ta-home.paths.srcRoot = selfPath;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user