1
Fork 0
satellite/modules/meta/simlink.nix
2022-05-15 21:56:19 +03:00

14 lines
424 B
Nix

# This is a home-manager config!!!
{ pkgs, lib, config, ... }: with lib; {
options.home.sfile = mkOption {
description = "Attribute set of files to link into the user home without placing them into the store first";
default = { };
type = types.attrsOf types.string;
};
config.systemd.user.tmpfiles.rules = mapAttrsToList
(name: value:
"L+ ${name} - - - - ${value}"
)
config.home.sfile;
}