nixos/home/modules/projects.nix

23 lines
458 B
Nix
Raw Normal View History

2024-06-27 21:44:44 +00:00
{ lib, config, ... }:
let
cfg = config.snowhawk.projects;
2024-06-27 22:11:26 +00:00
link = config.lib.file.mkOutOfStoreSymlink;
2024-06-27 21:44:44 +00:00
in
{
options.snowhawk.projects = {
enable = lib.mkEnableOption "projects";
};
config = lib.mkIf cfg.enable {
2024-06-27 22:11:26 +00:00
home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/";
2024-08-07 11:41:17 +00:00
snowhawk.tmux.sessionizer.paths =
let folder = config.home.file.projects.target;
in [
"~/${folder}"
];
2024-06-27 21:44:44 +00:00
};
}