-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,3 @@ | ||
<html><body><pre> | ||
#!/bin/sh | ||
|
||
# Install Nix | ||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \ | ||
sh -s -- install --no-confirm --extra-conf "trusted-users = $(whoami)" | ||
|
||
# Source nix configuration | ||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh | ||
|
||
# Run `om health` | ||
echo "\n# Check nix health" | ||
nix --accept-flake-config run github:juspay/omnix health | ||
|
||
# Setup nix-dev-home | ||
echo "\n# Setting up home-manager & direnv" | ||
mkdir -p ~/nixconfig && cd ~/nixconfig | ||
nix --accept-flake-config run github:juspay/omnix -- \ | ||
init github:juspay/nix-dev-home -o . \ | ||
--non-interactive \ | ||
--params '{"username":"'$(whoami)'", "git-name":"'$(id -F)'", "git-email":"'$(whoami)'@juspay.in", "neovim": true, "github-ci": false}' | ||
nix run | ||
# TODO: ^ must move dotfiles out of the way | ||
|
||
# New shell to activate home-manager env | ||
echo "\n# Spawning new shell" | ||
exec $SHELL | ||
Please see https://github.com/juspay/nixone | ||
</pre></body></html> |