My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/infra/libkookie/modules/harness/hm-loader.nix

15 lines
384 B

/**
* Load a home-manager configuration for a set of active users
*
* This loader is not to be exposed to the rest of libkookie,
* and should only be accessible by harness/lib.
*/
modPath: activeUsers:
{ config, lib, pkgs, ... }:
with lib;
{ home-manager.users = (listToAttrs (map
(u: nameValuePair "${u.name}" ({ ... }:
{ imports = [ modPath ]; })) activeUsers));
}