aboutsummaryrefslogtreecommitdiffhomepage
path: root/mitamae/default.rb
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-06 03:07:18 +0900
committernsfisis <nsfisis@gmail.com>2025-07-06 03:07:18 +0900
commit5a6c4591f480e220f05e7fff1f6c4aeaf537b70c (patch)
tree98cf9df5dbaa2d5cca13941090526c787540f267 /mitamae/default.rb
parent0053535ec962262c9a594311502be726a069ddd2 (diff)
downloaddotfiles-5a6c4591f480e220f05e7fff1f6c4aeaf537b70c.tar.gz
dotfiles-5a6c4591f480e220f05e7fff1f6c4aeaf537b70c.tar.zst
dotfiles-5a6c4591f480e220f05e7fff1f6c4aeaf537b70c.zip
home-manager: use home.file to manage some config files
Diffstat (limited to 'mitamae/default.rb')
-rw-r--r--mitamae/default.rb26
1 files changed, 7 insertions, 19 deletions
diff --git a/mitamae/default.rb b/mitamae/default.rb
index 9a614fc..9276656 100644
--- a/mitamae/default.rb
+++ b/mitamae/default.rb
@@ -25,34 +25,22 @@ directory "#{home}/.cache"
directory "#{home}/.local/share"
directory "#{home}/.local/state"
-execute "home-manager" do
+execute "home-manager switch" do
command "nix run 'nixpkgs#home-manager' -- switch --flake '.##{node[:name]}'"
not_if "type home-manager"
end
-# These dotfiles are not managed by home-manager for now.
-
-link "#{home}/.config/git" do
- to "#{home}/dotfiles/.config/git"
-end
link "#{home}/.config/nvim" do
to "#{home}/dotfiles/.config/nvim"
end
-directory "#{home}/.config/fish"
-link "#{home}/.config/fish/completions" do
- to "#{home}/dotfiles/.config/fish/completions"
-end
-
-# SKK
directory "#{home}/.config/skk"
-# Rust
-execute "rustup: install nightly toolchain" do
- command "rustup toolchain install nightly"
- not_if "rustup toolchain list | grep nightly"
-end
-
if node[:profile] == "private"
+ execute "rustup: install nightly toolchain" do
+ command "rustup toolchain install nightly"
+ not_if "rustup toolchain list | grep nightly"
+ end
+
package "pkg-config"
package "libssl-dev"
@@ -68,5 +56,5 @@ if node[:profile] == "private"
end
execute "home-manager switch" do
- command "home-manager switch --flake '.##{node[:name]}'"
+ command "nix run 'nixpkgs#home-manager' -- switch --flake '.##{node[:name]}'"
end