An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ~/.dotfiles for @shekohex

[![NixOS Unstable](https://img.shields.io/badge/NixOS-unstable-blue.svg?style=flat-square&logo=NixOS&logoColor=white)](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.