nixos/home/modules/projects.nix

21 lines
411 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 = [
config.home.file.projects.target
];
};
}