projects folder

sh-initrd-on-root
Zynh Ludwig 2024-06-27 14:44:44 -07:00
parent f85c28c4ce
commit fc389370f4
3 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,7 @@
}; };
snowhawk.alacritty.enable = true; snowhawk.alacritty.enable = true;
snowhawk.cursor.enable = true; snowhawk.cursor.enable = true;
snowhawk.projects.enable = true;
services.dunst.enable = true; services.dunst.enable = true;

View File

@ -9,6 +9,7 @@
./tmux.nix ./tmux.nix
./user.nix ./user.nix
./rose-pine-cursor.nix ./rose-pine-cursor.nix
./projects.nix
]; ];
snowhawk.user.enable = lib.mkDefault true; snowhawk.user.enable = lib.mkDefault true;

14
home/modules/projects.nix Normal file
View File

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.projects;
in
{
options.snowhawk.projects = {
enable = lib.mkEnableOption "projects";
};
config = lib.mkIf cfg.enable {
home.file.projects.source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/Documents/projects/";
};
}