website/content/posts/2023-03-24-managing-mutable-files-in-nixos/assets/mkoutofstoresymlink.nix

14 lines
319 B
Nix
Raw Permalink Normal View History

{ config, lib, pkgs, ... }:
let
dotfiles = config.lib.file.mkOutOfStoreSymlink "/home/foo-dogsquared/dotfiles";
in
{
# Putting the dotfiles in their rightful place.
xdg.configFile = {
doom.source = "${dotfiles}/emacs";
wezterm.source = "${dotfiles}/wezterm";
nvim.source = "${dotfiles}/nvim";
};
}