manage dotfiles with home manager

This commit is contained in:
Cy Pokhrel 2024-11-06 00:55:34 -05:00
parent 6b689531a9
commit 2a84570d78
6 changed files with 13 additions and 43 deletions

4
.gitmodules vendored
View file

@ -1,4 +0,0 @@
[submodule "dotbot"]
path = dotbot
url = https://github.com/anishathalye/dotbot
ignore = dirty

View file

@ -1,23 +0,0 @@
- defaults:
link:
relink: true
create: true
- clean: ['~']
- link:
~/.config/tmux:
~/.config/nvim:
~/.config/sway:
~/.config/kitty:
~/.config/aerc:
~/.config/mako:
~/.config/git:
~/.config/waybar:
~/.config/i3status-rust:
~/.config/rofi:
~/.zshrc:
~/.p10k.zsh:
- shell:
- [git submodule update --init --recursive, installing submodules]

1
dotbot

@ -1 +0,0 @@
Subproject commit 720206578a8daf1e7167200e73e314fc4b8af52e

View file

@ -17,6 +17,18 @@
]; ];
home.file = { home.file = {
".zshrc".source = ./zshrc;
".p10k.zsh".source = ./p10k.zsh;
".config/sway".source = ./sway;
".config/nvim".source = ./nvim;
".config/aerc".source = ./aerc;
".config/git".source = ./aerc;
".config/i3status-rust".source = ./i3status-rust;
".config/kitty".source = ./kitty;
".config/mako".source = ./mako;
".config/rofi".source = ./rofi;
".config/tmux".source = ./tmux;
".config/waybar".source = ./waybar;
}; };
home.sessionVariables = { home.sessionVariables = {

15
install
View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -e
CONFIG="conf.yml"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${DOTBOT_DIR}"
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"

1
result Symbolic link
View file

@ -0,0 +1 @@
/nix/store/jrh65nv8ziax01kw3qpz4k4mk7nia3c9-home-manager-generation