diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-28 16:59:21 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-28 16:59:21 -0600 |
| commit | eaa11cebcb15aa76c9ef10b539ac3dc412c50ff8 (patch) | |
| tree | 0b7be7305e210c0c4b5984c55659c6278d01d22e /users/timmy/repos.nix | |
| parent | 182f10a725e154d46069213ad709711f83c7c57a (diff) | |
| download | nixos-eaa11cebcb15aa76c9ef10b539ac3dc412c50ff8.tar.xz nixos-eaa11cebcb15aa76c9ef10b539ac3dc412c50ff8.zip | |
reposync
Diffstat (limited to 'users/timmy/repos.nix')
| -rw-r--r-- | users/timmy/repos.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/users/timmy/repos.nix b/users/timmy/repos.nix new file mode 100644 index 0000000..eed0219 --- /dev/null +++ b/users/timmy/repos.nix @@ -0,0 +1,48 @@ +{ config, ... }: let + server = "https://git.tjkeller.xyz/"; + # TODO find how to get home manager config instead of nixos config + #srcHome = "${config.xdg.userDirs.documents}/src"; + #configHome = config.xdg.configHome; + home = "/home/timmy"; + srcHome = "${home}/docs/src"; + configHome = "${home}/.config"; +in { + config = { + home-manager.users.timmy = { + reposync.enable = true; + reposync.outOfStoreGitRepository = { + config = { + inherit server; + repository = "dotconfig"; + targetPrefix = srcHome; + stow.".".targetPrefix = configHome; + }; + nixos = { + inherit server; + targetPrefix = srcHome; + }; + scripts = { + inherit server; + targetPrefix = srcHome; + stow."*".target = ".local/bin"; + }; + userscripts = { + inherit server; + targetPrefix = srcHome; + }; + awesome = { + inherit server; + targetPrefix = configHome; + }; + nvim = { + inherit server; + targetPrefix = configHome; + }; + zsh = { + inherit server; + targetPrefix = configHome; + }; + }; + }; + }; +} |
