22 lines
458 B
Nix
22 lines
458 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/";
|
|
|
|
snowhawk.tmux.sessionizer.paths =
|
|
let folder = config.home.file.projects.target;
|
|
in [
|
|
"~/${folder}"
|
|
];
|
|
};
|
|
}
|