File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 rev = "a9bdf479f8982c4b83b5c5005c8231c6b3352e2a" ;
1919 hash = "sha256-WeqvsKXTO3Iham+2dI1QsNZWA8Yv9BHn1BgdlvR8zaw=" ;
2020 } ;
21+
22+ mkXdgConfigDirs =
23+ base : names :
24+ lib . genAttrs names ( name : {
25+ source = "${ base } /${ name } " ;
26+ recursive = true ;
27+ } ) ;
2128in
2229{
2330 home . username = username ;
253260 opencode . enable = true ;
254261 } ;
255262
256- xdg . enable = true ;
263+ xdg = {
264+ enable = true ;
257265
258- xdg . configFile . "zeno/config.yml" . text = ''
259- snippets:
260- - name: git status
261- keyword: gs
262- snippet: git status --short --branch
263- '' ;
266+ configFile = {
267+ "zeno/config.yml" . text = ''
268+ snippets:
269+ - name: git status
270+ keyword: gs
271+ snippet: git status --short --branch
272+ '' ;
264273
265- xdg . configFile . "fsh/catppuccin-${ config . catppuccin . flavor } .ini" . source =
266- "${ catppuccinZshFsh } /themes/catppuccin-${ config . catppuccin . flavor } .ini" ;
274+ "fsh/catppuccin-${ config. catppuccin . flavor } .ini" . source =
275+ "${ catppuccinZshFsh } /themes/catppuccin-${ config . catppuccin . flavor } .ini" ;
276+
277+ }
278+ // mkXdgConfigDirs dotfiles [
279+ "nvim"
280+ "git"
281+ "wezterm"
282+ ] ;
283+ } ;
267284}
Original file line number Diff line number Diff line change 11#! /bin/env bash
22DOTDIR=$( cd $( git rev-parse --show-toplevel) ; pwd)
3- ZSHRC=" $DOTDIR /zsh/.zshrc"
43cd $DOTDIR
54XDG_CONFIG_HOME=" $HOME /.config"
6- export AQUA_GLOBAL_CONFIG=$XDG_CONFIG_HOME /aquaproj-aqua/aqua.yaml
75if [ ! -d $XDG_CONFIG_HOME ]; then
86 mkdir $XDG_CONFIG_HOME
97fi
108git submodule update --init --recursive
119ln -sfnv $DOTDIR /git-hook/post-merge $DOTDIR /.git/hooks/post-merge
12- ln -sfnv $DOTDIR /git $XDG_CONFIG_HOME /git
13- ln -sfnv $DOTDIR /zsh $XDG_CONFIG_HOME /zsh
14- ln -sfnv $ZSHRC $HOME /.zshrc
15- ln -sfnv $DOTDIR /zsh/sheldon $XDG_CONFIG_HOME /sheldon
16- ln -sfnv $DOTDIR /starship.toml $XDG_CONFIG_HOME /starship.toml
17- ln -sfnv $DOTDIR /nvim $XDG_CONFIG_HOME /nvim
18- ln -sfnv $DOTDIR /wezterm $XDG_CONFIG_HOME /wezterm
19- ln -sfnv $DOTDIR /sway $XDG_CONFIG_HOME /sway
20- ln -sfnv $DOTDIR /tofi $XDG_CONFIG_HOME /tofi
2110ln -sfnv $DOTDIR /emacs $HOME /.emacs.d
2211
2312if type nix > /dev/null 2>&1 ; then
You can’t perform that action at this time.
0 commit comments