nixos-config icon indicating copy to clipboard operation
nixos-config copied to clipboard

My NixOS configuration files

NixOS config

This is the NixOS config for my work laptop, a XPS 13 9360.

It uses systemd-boot, Xorg, GDM, GNOME and LVM on LUKS.

Configuration inspiration

I spent a lot of time reading other user's configurations, mainly from the wiki's Configuration Collection. This is where I learned the most!

Installation

This posts helped me install NixOS on my XPS:

  • https://nixos.org/nixos/manual/
  • https://blog.qfpl.io/posts/installing-nixos/
  • https://gist.github.com/RobBlackwell/64149c868f2361bb4c6e9d4fede65633
  • https://grahamc.com/blog/nixos-on-dell-9560
  • https://chris-martin.org/2015/installing-nixos

Add unstable channel

I'm using NixOS unstable. To replace to nixos-channel with unstable:

# nix-channel --add https://nixos.org/channels/nixos-unstable nixos

If you didn't use unstable during the install, you will need to update and rebuild:

# nix-channel --update nixos
# nixos-rebuild switch

Add home-manager system module

cf. https://rycee.gitlab.io/home-manager/index.html#sec-install-nixos-module

# nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
# nix-channel --update

Usage

$ git clone https://github.com/angristan/nixos-config.git ~/config
$ sudo ln -s ~/config /etc/nixos
$ sudo nixos-rebuild switch