From deea0e5dce7a240dcb2c4aabdc61d642c66feb70 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 17 Mar 2023 22:36:36 +0800 Subject: [PATCH] modules/mutable-files: fix module --- modules/home-manager/files/mutable-files.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/files/mutable-files.nix b/modules/home-manager/files/mutable-files.nix index 57650da7..605daf6d 100644 --- a/modules/home-manager/files/mutable-files.nix +++ b/modules/home-manager/files/mutable-files.nix @@ -4,7 +4,7 @@ let cfg = config.home.mutableFile; homeDir = config.home.homeDirectory; - fileSubmodule = { name, config, options, ... }: { + fileSubmodule = baseDir: { name, config, options, ... }: { options = { url = lib.mkOption { type = lib.types.str; @@ -56,7 +56,7 @@ let in { 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 '' An attribute set of mutable files and directories to be declaratively put into the home directory. Take note this is not exactly pure (or