aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/vimrc/init.lua1
-rw-r--r--.zshenv8
-rw-r--r--INSTALL.txt34
-rw-r--r--home-manager/home.nix42
4 files changed, 51 insertions, 34 deletions
diff --git a/.config/nvim/lua/vimrc/init.lua b/.config/nvim/lua/vimrc/init.lua
index 3148d02..6b039b5 100644
--- a/.config/nvim/lua/vimrc/init.lua
+++ b/.config/nvim/lua/vimrc/init.lua
@@ -66,6 +66,7 @@ function M.register_filetype_autocmds_for_indentation()
lisp = { style = SPACE, width = 2 },
lua = { style = SPACE, width = 3 },
markdown = { style = SPACE, width = 4 },
+ nix = { style = SPACE, width = 2 },
php = { style = SPACE, width = 2 },
python = { style = SPACE, width = 4 },
ruby = { style = SPACE, width = 2 },
diff --git a/.zshenv b/.zshenv
index 9aa9d62..a29fc68 100644
--- a/.zshenv
+++ b/.zshenv
@@ -12,3 +12,11 @@ export SQLITE_HISTORY="$XDG_CACHE_HOME/sqlite_history"
# Path
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
+
+# Nix
+if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
+ . "$HOME/.nix-profile/etc/profile.d/nix.sh"
+fi
+if [ -e "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
+ . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
+fi
diff --git a/INSTALL.txt b/INSTALL.txt
index 92c9dea..840aa48 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -2,26 +2,12 @@ macOS (homebrew)
```
$ brew install \
- bash \
- bat \
- cmake \
- curl \
- fd \
- fzf \
gcc \
- git \
- jq \
ncurses \
neovim \
- newsboat \
- pandoc \
python \
- ripgrep \
ruby \
tmux \
- tokei \
- tree \
- vim \
zsh \
;
@@ -53,24 +39,11 @@ Ubuntu (apt)
```
$ sudo apt install \
- bash \
- bat \
- cmake \
- curl \
- fd-find \
- fzf \
gcc \
- git \
- jq \
- keepassxc \
neovim \
- newsboat \
- pandoc \
python-is-python3 \
- ripgrep \
ruby \
tmux \
- vim \
zsh \
;
@@ -87,11 +60,4 @@ $ cargo install alacritty
$ cargo install cargo-compete
$ go install github.com/rhysd/vim-startuptime@latest
-
-$ [[ ! -d ~/tmp ]] && mkdir; cd ~/tmp
-$ curl -fsSL https://deno.land/x/install/install.sh > deno_install.sh
-$ sh deno_install.sh
-$ # deno upgrade
-
-$ snap install zig --classic --edge
```
diff --git a/home-manager/home.nix b/home-manager/home.nix
new file mode 100644
index 0000000..6b40137
--- /dev/null
+++ b/home-manager/home.nix
@@ -0,0 +1,42 @@
+{ config, pkgs, ... }:
+{
+ home.username = builtins.getEnv "USER";
+ home.homeDirectory = builtins.getEnv "HOME";
+
+ home.stateVersion = "22.11";
+
+ programs.home-manager.enable = true;
+
+ home.packages = [
+ # pkgs.alacritty
+ pkgs.bat
+ pkgs.cmake
+ pkgs.curl
+ pkgs.deno
+ pkgs.fd
+ pkgs.fzf
+ # pkgs.gcc
+ pkgs.git
+ pkgs.go
+ pkgs.jq
+ # pkgs.neovim
+ pkgs.newsboat
+ pkgs.pandoc
+ pkgs.python311
+ pkgs.ripgrep
+ pkgs.ruby_3_1
+ # pkgs.tmux
+ pkgs.tokei
+ pkgs.tree
+ pkgs.zig
+ # pkgs.zsh
+ ];
+
+ home.file = {
+ # "hoge".source = dotfiles/piyo;
+ };
+
+ home.sessionVariables = {
+ # EDITOR = "nvim";
+ };
+}