/nixos-config

My NixOS configuration files

Primary LanguageNix

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:

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