https://github.com/anders130/dotfiles
my dotfiles
https://github.com/anders130/dotfiles
dotfiles nixos
Last synced: 11 months ago
JSON representation
my dotfiles
- Host: GitHub
- URL: https://github.com/anders130/dotfiles
- Owner: anders130
- License: mit
- Created: 2024-02-24T16:14:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T11:27:13.000Z (over 1 year ago)
- Last Synced: 2024-10-29T13:22:32.461Z (over 1 year ago)
- Topics: dotfiles, nixos
- Language: Nix
- Homepage:
- Size: 24.5 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My [NixOS](https://nixos.org/) Configuration
## About
This repository contains all my NixOS configurations. It uses [Nix flakes](https://nixos.wiki/wiki/Flakes) to manage the configurations.
To create the hosts and modules I use the nix-library [modulix](https://github.com/anders130/modulix).
- [./hosts](./hosts): Contains the configurations for my different hosts.
- [./modules](./modules): Contains the modules for my different hosts.
- [./overlays](./overlays): Contains overlays for various packages that I use.
- [./pkgs](./pkgs): Contains package definitions for some packages that are/were not in nixpkgs.
- [./templates](./templates): Contains templates for some flake-based projects.
## Usage
To rebuild this configuration simply use this command:
```fish
rebuild
```
It will assume your host configuration name with the `$NIX_FLAKE_DEFAULT_HOST` environment variable.
If you want, you can choose a different rebuild subcommand, you can even specify additional arguments:
```fish
rebuild boot --impure
```
---
If you encounter rate limiting while updating flake inputs, you can add your github token via `~/.config/nix/nix.conf`:
```conf
access-tokens = github.com=ghp_***
```
---
To temporarily try out packages that are unfree, you can use the `--unfree` flag in the `nix` command:
```fish
nix run nixpkgs#unfreePackage --unfree
```
To create a new token, go to [github.com/settings/tokens](https://github.com/settings/tokens) and click on `Generate new token`.
## Installation
You can find installation guides for each host in the directory of the host (e. g. [./hosts/desktop](./hosts/desktop)).