Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aymanbagabas/dotfiles
home
https://github.com/aymanbagabas/dotfiles
Last synced: 16 days ago
JSON representation
home
- Host: GitHub
- URL: https://github.com/aymanbagabas/dotfiles
- Owner: aymanbagabas
- Created: 2013-04-23T19:25:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T04:17:48.000Z (7 months ago)
- Last Synced: 2024-05-02T04:23:04.613Z (6 months ago)
- Language: Lua
- Homepage:
- Size: 4.42 MB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
Ayman's (~) Nix and NixOS dotfiles
It uses nixOS, home-manager, and nix-darwin.```
Colorscheme: Onedark
Shell: zsh/pwsh
Terminal: Ghostty/iTerm2/WindowsTerminal
Font: Inconsolata LGC + NF
```## Install Nix
This is only necessary when you're _not_ running NixOS.
```sh
# On MacOS
# Use Determinate Systems Nix installer
# I find this a more stable and reliable installation for MacOS
# You can also use the official Nix installer
# sh <(curl -L https://nixos.org/nix/install)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
# Install Homebrew (Optional)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add the fonts tap (Optional)
brew tap homebrew/cask-fonts
# Change the hostname and machine name
# Go to System Settings and change both the machine name and Sharing hostname
# to the machine hostname.
# You also want to set the hostname using `scutil`
sudo scutil --set HostName# On Linux
sh <(curl -L https://nixos.org/nix/install) --daemon
```See [Nix download](https://nixos.org/download/) page for more info.
## Enable flakes
This dotfiles use Nix Flakes, make sure it's enabled on your system.
Using NixOS, add the following to your `configuration.nix`:
```nix
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
```Otherwise:
```sh
mkdir -p "$HOME/.config/nix"
echo "experimental-features = nix-command flakes" >> "$HOME/.config/nix/nix.conf"
```## Management
To apply or update the dotfiles and configurations, first make sure you have
cloned the repository:```sh
git clone https://github.com/aymanbagabas/dotfiles.git ~/.dotfiles
```Now you can use `nix develop` to run the commands in development shell.
```sh
# apply dotfiles
nix develop .#default --command dot-apply
# sync with latest
nix develop .#default --command dot-sync
```## Tips
### Fix Tmux Colors on MacOS
See [this gist](https://gist.github.com/bbqtd/a4ac060d6f6b9ea6fe3aabe735aa9d95).
## Screenshots
Neovim:
![neovim](https://github.com/aymanbagabas/dotfiles/assets/3187948/37ba40e4-52eb-49a0-9f9d-a5df36f22530)