sketch out a module that can add files to a homedir

This commit is contained in:
Jeremy Wall 2024-06-12 16:43:56 -04:00
parent ae928f753b
commit 9fb17624b9

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, ...}:
with lib;
let
userFiles = mapAttrs (u: fs: (filter (f: f.enable) (attrValues fs))) (attrValues config.homeDir);
in
{
options = {
homeDir = mkOption {
default = {};
description = ''
Users with files to link into their homedirectory.
{ "user1" = {
".git/config" = {
enable = true;
};
};
};
'';
};
};
config = {
};
}