My NixOS configuration
Find a file
2020-09-23 12:36:30 +02:00
desktop feat(gnome): update pop-shell 2020-09-23 09:32:37 +02:00
hardware feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
home feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
services feat: add jellyfin 2020-08-15 00:35:17 +02:00
system feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
templates feat(dotnet): disable config and move to templates 2020-09-09 19:00:05 +02:00
virtualisation feat: fix virtualisation path 2020-08-15 13:53:15 +02:00
.editorconfig style: add .editorconfig 2020-03-21 16:54:32 +01:00
.gitignore remove configuration.nix 2019-08-24 13:20:48 +02:00
flake.lock feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
flake.nix feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
home-pc.nix feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
LICENSE add LICENSE 2020-07-03 08:48:51 +00:00
README.md feat: migrate to nix flake 2020-09-23 12:36:30 +02:00
work-pc.nix feat: migrate to nix flake 2020-09-23 12:36:30 +02:00

felschr's NixOS configuration

Installation

Clone the configuraiton into etc/nixos.

On a new machine run:

nixos-generate-config --root /mnt

Then move the resulting /etc/nixos/hardware-configuration.nix to ./hardware/<config>.nix and adjust it and the flake.nix accodringly. Make sure everything was properly recognised. Btrfs mount options might be missing, for example.

To install run the following command where <config> matches outputs.nixosConfigurations.<config> in flake.nix:

nixos-install --flake /etc/nixos#<config>

Updating

Update all or specific locked flake inputs:

nix flake update
nix flake update --update-input <input>

Rebuilding the system

Rebuild the system:

sudo nixos-rebuild switch

Update flake.lock and rebuild the system:

nix flake update && sudo nixos-rebuild switch