nixos/home/modules/projects.nix

17 lines
324 B
Nix

{ lib, config, ... }:
let
cfg = config.snowhawk.projects;
link = config.lib.file.mkOutOfStoreSymlink;
in
{
options.snowhawk.projects = {
enable = lib.mkEnableOption "projects";
};
config = lib.mkIf cfg.enable {
home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/";
};
}