Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zzorz/dotfiles
My dotfiles
https://github.com/zzorz/dotfiles
Last synced: about 1 month ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/zzorz/dotfiles
- Owner: Zzorz
- License: unlicense
- Created: 2020-08-30T13:18:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-23T14:10:50.000Z (about 1 month ago)
- Last Synced: 2024-11-23T15:21:37.342Z (about 1 month ago)
- Language: Nix
- Size: 356 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotfiles
Razyang's dotfiles managed by nix and home-manager.
# Show what's supported
```bash
nix flake show "github:zzorz/dotfiles"
```or using `nix repl`, `:lf "github:zzorz/dotfiles"` function. or using git to
download this flake
`nix flake show "git+https://github.com/Zzorz/dotfiles?submodules=1&shallow=1"`# Installation
## for non nixos host
### Install nix first
```bash
sh <(curl -L https://nixos.org/nix/install) --daemon
```### Add experimental features setting to /etc/nix/nix.conf
```bash
echo 'extra-experimental-features = nix-command flakes' >> /etc/nix/nix.conf
```### using home-manager, switch to my config
```bash
nix run 'github:nix-community/home-manager' -- switch --flake 'github:zzorz/dotfiles'
```OR
```bash
nix run 'git+https://github.com/nix-community/home-manager?submodules=1&shallow=1' -- switch --flake 'git+https://github.com/Zzorz/dotfiles?submodules=1&shallow=1'
```suppurted usernames are `razyang`,`test` and `root`.
## for nixos
```bash
nixos-rebuild switch --flake "github:zzorz/dotfiles"
```OR
```bash
nixos-rebuild switch --flake 'git+https://github.com/Zzorz/dotfiles?submodules=1&shallow=1'
```suppurted hostnames are `playground`, `adguardhome` and `fileserver`
### Just neovim alone
```bash
nix profile install 'github:zzorz/dotfiles#nixvim'
```Without install
```bash
nix run 'github:zzorz/dotfiles#nixvim'
```# pack any executable in nixpkgs and run it anywhre
here's a nix bundler in this project which base on bwrap and erofs-utils, it's
simple but very useful:```bash
$ nix bundle --bundler 'github:Zzorz/dotfiles#bwrap' 'nixpkgs#nginx'
$ nginx-1.26.2.tar.gz
$ ./nginx-1.26.2 -v
nginx version: nginx/1.26.2
```# Thanks
A huge thank you to [@accelbread](https://github.com/accelbread) for his
outstanding work on [flakelight](https://github.com/nix-community/flakelight),
which has greatly simplified the structure of this project, making it much
neater, cleaner, and easier to understand.