nixos/home/modules/projects.nix

17 lines
324 B
Nix
Raw Normal View History

2024-06-27 14:44:44 -07:00
{ lib, config, ... }:
let
cfg = config.snowhawk.projects;
2024-06-27 15:11:26 -07:00
link = config.lib.file.mkOutOfStoreSymlink;
2024-06-27 14:44:44 -07:00
in
{
options.snowhawk.projects = {
enable = lib.mkEnableOption "projects";
};
config = lib.mkIf cfg.enable {
2024-06-27 15:11:26 -07:00
home.file.projects.source = link "${config.home.homeDirectory}/Documents/projects/";
2024-06-27 14:44:44 -07:00
};
}