nixos/home/modules/projects.nix

17 lines
324 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-06-27 21:44:44 +00:00
};
}