25 lines
492 B
Nix
25 lines
492 B
Nix
|
{ 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 = {
|
||
|
};
|
||
|
}
|