Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Denommus/nix-configurations

My global and home configurations on NixOS
https://github.com/Denommus/nix-configurations

Last synced: 3 months ago
JSON representation

My global and home configurations on NixOS

Awesome Lists containing this project

README

        

* My NixOS and Nix-Darwin configuration

[[https://nixos.org/][NixOS]] is an awesome Linux distribution that I'm using in my home
machine with success. These files are my configuration for it, and
it installs and configures all my applications and services.

[[http://daiderd.com/nix-darwin/][Nix-Darwin]] is a way to get NixOS-like configurations on the MacOS
system. I'm also using it on my work machine with success.

** Using it

Notice my configuration *only* supports x86-64 systems. I don't have
access to an ARM system to try to adapt this configuration for it.

You'll of course also need to replace my email configuration with your
own.

*** NixOS

You probably need to replace my ~hardware-config.nix~ with your own
(generated by the NixOS installer) and adjust the ~configuration.nix~
to use your own video drivers (mine uses Nvidia).

After that you need to create one symlink:

#+begin_src sh
sudo rm -rf /etc/nixos && sudo ln -s $PWD/ /etc/nixos
#+end_src

Then you can run:

#+begin_src sh
sudo nixos-rebuild switch
#+end_src

*** Darwin

Install nix-darwin according to the official instructions. Then just run

#+begin_src sh
darwin-rebuild switch --flake /path/to/nix-configurations
#+end_src