16 lines
324 B
Nix
16 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/";
|
|
};
|
|
}
|