mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-26 06:19:01 +00:00
modules/mutable-files: fix module
This commit is contained in:
parent
bf407a91a8
commit
deea0e5dce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user