modules/mutable-files: fix module

This commit is contained in:
Gabriel Arazas 2023-03-17 22:36:36 +08:00
parent bf407a91a8
commit deea0e5dce
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -4,7 +4,7 @@ let
cfg = config.home.mutableFile; cfg = config.home.mutableFile;
homeDir = config.home.homeDirectory; homeDir = config.home.homeDirectory;
fileSubmodule = { name, config, options, ... }: { fileSubmodule = baseDir: { name, config, options, ... }: {
options = { options = {
url = lib.mkOption { url = lib.mkOption {
type = lib.types.str; type = lib.types.str;
@ -56,7 +56,7 @@ let
in in
{ {
options.home.mutableFile = lib.mkOption { options.home.mutableFile = lib.mkOption {
type = with lib.types; attrsOf (submodule fileSubmodule); type = with lib.types; attrsOf (submodule (fileSubmodule config.home.homeDirectory));
description = lib.mkDoc '' description = lib.mkDoc ''
An attribute set of mutable files and directories to be declaratively put An attribute set of mutable files and directories to be declaratively put
into the home directory. Take note this is not exactly pure (or into the home directory. Take note this is not exactly pure (or