fix: use quoted "m3ta-home" namespace (consistent with repo name)
This commit is contained in:
@@ -90,7 +90,7 @@ in {
|
|||||||
++ setImports;
|
++ setImports;
|
||||||
|
|
||||||
# Set the flake source root for asset path resolution
|
# Set the flake source root for asset path resolution
|
||||||
m3taHome.paths.srcRoot = selfPath;
|
"m3ta-home".paths.srcRoot = selfPath;
|
||||||
|
|
||||||
assertions =
|
assertions =
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
in {
|
in {
|
||||||
default = {
|
default = {
|
||||||
imports = [
|
imports = [
|
||||||
# Paths — must be first, provides m3taHome.paths.srcRoot
|
# Paths — must be first, provides "m3ta-home".paths.srcRoot
|
||||||
./paths.nix
|
./paths.nix
|
||||||
|
|
||||||
# Profiles
|
# Profiles
|
||||||
@@ -31,6 +31,6 @@ in {
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Set the source root for asset path resolution
|
# Set the source root for asset path resolution
|
||||||
m3taHome.paths.srcRoot = selfPath;
|
"m3ta-home".paths.srcRoot = selfPath;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#
|
#
|
||||||
# Relative paths with ../.. break in the Nix store during pure evaluation.
|
# Relative paths with ../.. break in the Nix store during pure evaluation.
|
||||||
# This module exposes the flake source root so other modules can reference
|
# This module exposes the flake source root so other modules can reference
|
||||||
# assets via config.m3taHome.paths.srcRoot.
|
# assets via config."m3ta-home".paths.srcRoot.
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
options.m3taHome.paths = {
|
options."m3ta-home".paths = {
|
||||||
srcRoot = lib.mkOption {
|
srcRoot = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
description = "Root path of the m3ta-home flake source (set by flake.nix).";
|
description = "Root path of the m3ta-home flake source (set by flake.nix).";
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ in {
|
|||||||
config = mkIf cfg {
|
config = mkIf cfg {
|
||||||
xdg.configFile."hypr/wallpapers" = {
|
xdg.configFile."hypr/wallpapers" = {
|
||||||
# Use the flake source root for pure evaluation compatibility
|
# Use the flake source root for pure evaluation compatibility
|
||||||
source = "${config.m3taHome.paths.srcRoot}/assets/wallpapers";
|
source = "${config."m3ta-home".paths.srcRoot}/assets/wallpapers";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user