Skip to content

Commit

Permalink
Extract executing home-manager as a task
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 28, 2023
1 parent e82d6e7 commit 3c63680
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ args = [
'dist',
'./...',
]

[tasks.apply]
script = [
"home-manager switch -f ./home/.config/home-manager/home.nix",
]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Also known as [盆栽(bonsai)](https://en.wikipedia.org/wiki/Bonsai) 🌳
1. Install [nix-community/home-manager](https://github.com/nix-community/home-manager)
1. Set `XDG_*` into current env. `. ./home/.bashrc`
1. Make sure `$XDG_CONFIG_HOME/home-manager/home.nix` does not exists. If not, check the content and remove
1. `home-manager switch -f ./home/.config/home-manager/home.nix`
1. `makers apply`
1. Run `go run ./cmd/mksym --linker path-from --linked path-to` if needed
1. (optional) Install [jdxcode/rtx](https://github.com/jdxcode/rtx) to manage subdivided versions

Expand Down

0 comments on commit 3c63680

Please sign in to comment.