-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiles.nix
23 lines (23 loc) · 1.07 KB
/
files.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs, config, ... }:
let
HOME = config.home.homeDirectory;
CONFIG = "${HOME}/config/config";
CODE = "${HOME}/Library/Application Support/Code/User";
mksym = config.lib.file.mkOutOfStoreSymlink;
in
{
"${CODE}/settings.json".source = mksym "${CONFIG}/vscode/settings.json";
"${CODE}/keybindings.json".source = mksym "${CONFIG}/vscode/keybindings.json";
"${HOME}/.gitconfig".source = mksym "${CONFIG}/.gitconfig";
"${HOME}/.gitignore".source = mksym "${CONFIG}/.gitignore";
"${HOME}/.githelpers".source = mksym "${CONFIG}/.githelpers";
"${HOME}/.starship.toml".source = mksym "${CONFIG}/.starship.toml";
"${HOME}/.zshrc".source = mksym "${CONFIG}/.zshrc";
"${HOME}/lib.sh".source = mksym "${CONFIG}/lib.sh";
"${HOME}/.config/starship.toml".source = mksym "${CONFIG}/.starship.toml";
"${HOME}/.config/nvim".source = mksym "${CONFIG}/nvim";
"${HOME}/.config/karabiner".source = mksym "${CONFIG}/karabiner";
"${HOME}/.config/aerospace".source = mksym "${CONFIG}/aerospace";
# TODO: manage secrets properly
"${HOME}/.secrets".source = mksym "${HOME}/config/secrets";
}