manage dotfiles with home manager
This commit is contained in:
parent
6b689531a9
commit
2a84570d78
6 changed files with 13 additions and 43 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,4 +0,0 @@
|
||||||
[submodule "dotbot"]
|
|
||||||
path = dotbot
|
|
||||||
url = https://github.com/anishathalye/dotbot
|
|
||||||
ignore = dirty
|
|
23
conf.yml
23
conf.yml
|
@ -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
dotbot
|
@ -1 +0,0 @@
|
||||||
Subproject commit 720206578a8daf1e7167200e73e314fc4b8af52e
|
|
12
home.nix
12
home.nix
|
@ -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
15
install
|
@ -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
1
result
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/nix/store/jrh65nv8ziax01kw3qpz4k4mk7nia3c9-home-manager-generation
|
Loading…
Add table
Reference in a new issue