Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/thekorn/nix-config

nix based configuration
https://github.com/thekorn/nix-config

Last synced: about 2 months ago
JSON representation

nix based configuration

Awesome Lists containing this project

README

        

# config using nix and flake

This is the config for my machines.

## prerequisits

* git
* homebrew

```
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

* clone this repository

```
$ git clone https://github.com/thekorn/nix-config.git .config/nix
```

* install nix

```
$ sh <(curl -L https://nixos.org/nix/install)
```

```
$ cd .config/nix
$ nix build .#darwinConfigurations.demoVM.system --extra-experimental-features "nix-command flakes"

# the plan is to now run this to install nix-darwin with our configuration
# ./result/sw/bin/darwin-rebuild switch --flake .#demoVM # this will fail as we first have to do the following lines

$ printf 'run\tprivate/var/run\n' | sudo tee -a /etc/synthetic.conf
$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t

# now we can finally darwin-rebuild
$ ./result/sw/bin/darwin-rebuild switch --flake .#demoVM
```

## reference

* https://github.com/thexyno/blogpages.git
* https://daiderd.com/nix-darwin/manual/index.html
* https://nix-community.github.io/home-manager/options.html
* https://codeberg.org/imMaturana/dotfiles
* https://github.com/schickling/dotfiles