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;
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user