projects folder
This commit is contained in:
parent
f85c28c4ce
commit
fc389370f4
3 changed files with 16 additions and 0 deletions
1
home.nix
1
home.nix
|
@ -11,6 +11,7 @@
|
|||
};
|
||||
snowhawk.alacritty.enable = true;
|
||||
snowhawk.cursor.enable = true;
|
||||
snowhawk.projects.enable = true;
|
||||
|
||||
|
||||
services.dunst.enable = true;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
./tmux.nix
|
||||
./user.nix
|
||||
./rose-pine-cursor.nix
|
||||
./projects.nix
|
||||
];
|
||||
|
||||
snowhawk.user.enable = lib.mkDefault true;
|
||||
|
|
14
home/modules/projects.nix
Normal file
14
home/modules/projects.nix
Normal 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/";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue