https://github.com/shekohex/dotfiles
my swiss army knife
https://github.com/shekohex/dotfiles
Last synced: 9 months ago
JSON representation
my swiss army knife
- Host: GitHub
- URL: https://github.com/shekohex/dotfiles
- Owner: shekohex
- License: apache-2.0
- Created: 2021-01-30T15:36:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-16T13:14:22.000Z (11 months ago)
- Last Synced: 2025-07-17T11:26:57.955Z (11 months ago)
- Language: Nix
- Size: 3.41 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ~/.dotfiles for @shekohex
[](https://nixos.org)
> **Disclaimer:** _This is not a community framework or distribution._ It's a
> private configuration and an ongoing experiment to feel out NixOS. I make no
> guarantees that it will work out of the box for anyone but myself. It may also
> change drastically and without warning.
These are my dotfiles for configuring my system. Feel free to use them as you like.
## Overview
These are configuration files for different hosts/machines which includes my _workstation_ and my _macbook_.
## Installation
For **workstation:** host, after installing the base NixOS, you can run the following:
```shell
nix-env -iA nixpkgs.git
git clone https://github.com/shekohex/dotfiles.git ~/.dotfiles && cd ~/.dotfiles
sudo nixos-rebuild --extra-experimental-features 'nix-command flakes' switch --flake .#workstation
```
For **macbook:** host, you need to follow these to steps:
1. Install Nix (_skip if already installed_):
```bash
sh <(curl -L https://nixos.org/nix/install)
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
```
2. Install the dotfiles:
```shell
nix-env -iA nixpkgs.git
git clone https://github.com/shekohex/dotfiles.git ~/.dotfiles && cd ~/.dotfiles
nix build .#darwinConfigurations.macbook.system
./result/sw/bin/darwin-rebuild switch --flake .#macbook
```
Since darwin is now added to the `PATH`, you can build it from anywhere in the system. In this example it is rebuilt from inside the flake directory:
```shell
darwin-rebuild switch --flake .#
```
This will rebuild the configuration and automatically activate it.
#### License
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.