From 9fb17624b9dc6dd786b6985d0537ba06a01e30df Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 12 Jun 2024 16:43:56 -0400 Subject: [PATCH] sketch out a module that can add files to a homedir --- nix/base-system/modules/home.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 nix/base-system/modules/home.nix diff --git a/nix/base-system/modules/home.nix b/nix/base-system/modules/home.nix new file mode 100644 index 0000000..e77c60b --- /dev/null +++ b/nix/base-system/modules/home.nix @@ -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 = { + }; +}