aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/alacritty.common.yml2
-rw-r--r--INSTALL.txt1
-rwxr-xr-xbootstrap.sh9
-rw-r--r--flake.nix12
-rw-r--r--home-manager/home.nix6
5 files changed, 22 insertions, 8 deletions
diff --git a/.config/alacritty/alacritty.common.yml b/.config/alacritty/alacritty.common.yml
index 404e640..544d6ee 100644
--- a/.config/alacritty/alacritty.common.yml
+++ b/.config/alacritty/alacritty.common.yml
@@ -443,7 +443,7 @@ shell:
args:
- -c
- >
- export PATH="$PATH:/usr/bin:/usr/local/bin";
+ export PATH="$PATH:$HOME/.nix-profile/bin";
if command -v tmux >/dev/null; then
if command -v fzf >/dev/null; then
session="$(
diff --git a/INSTALL.txt b/INSTALL.txt
index 2465047..c4f8951 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -3,7 +3,6 @@ macOS (homebrew)
```
$ brew update
$ brew install \
- ncurses \
python \
zsh \
;
diff --git a/bootstrap.sh b/bootstrap.sh
index 641fac9..94cb202 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,5 +1,12 @@
#!/bin/sh
+if [ $# != 1 ]; then
+ echo "Usage: $0 <host>" >&2
+ echo "Availabel hosts:" >&2
+ grep '= mkHomeConfiguration' flake.nix | cut -d '=' -f 1 | sed -e 's/^ */ * /' >&2
+ exit 1
+fi
+
if [ ! -d .bootstrap ]; then
mkdir .bootstrap
fi
@@ -20,5 +27,5 @@ fi
if type home-manager > /dev/null 2>&1; then
:
else
- nix run "nixpkgs#home-manager" -- switch --flake ".#ken"
+ nix run "nixpkgs#home-manager" -- switch --flake ".#$1"
fi
diff --git a/flake.nix b/flake.nix
index 72e76a9..6855b32 100644
--- a/flake.nix
+++ b/flake.nix
@@ -42,9 +42,15 @@
];
};
in {
- homeConfigurations.ken = mkHomeConfiguration {
- system = "x86_64-linux";
- env.gui.clipboard.copyCommand = null;
+ homeConfigurations = {
+ privateHotaru = mkHomeConfiguration {
+ system = "x86_64-linux";
+ env = {
+ username = "ken";
+ homeDirectory = "/home/ken";
+ gui.clipboard.copyCommand = null;
+ };
+ };
};
};
}
diff --git a/home-manager/home.nix b/home-manager/home.nix
index 7185d16..e3156a8 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -1,11 +1,13 @@
{ pkgs, specialArgs, ... }:
let
+ username = specialArgs.env.username;
+ homeDirectory = specialArgs.env.homeDirectory;
clipboardCopyCommand = specialArgs.env.gui.clipboard.copyCommand;
requiresWlClipboard = clipboardCopyCommand == "wl-copy";
in
{
- home.username = "ken";
- home.homeDirectory = "/home/ken";
+ home.username = username;
+ home.homeDirectory = homeDirectory;
home.stateVersion = "23.11";