My NixOS configuration
Find a file
2021-11-27 20:13:59 +01:00
desktop feat(work-pc): setup Wayland with NVIDIA's GBM backend 2021-11-09 09:57:22 +01:00
hardware feat(work-pc): setup Wayland with NVIDIA's GBM backend 2021-11-09 09:57:22 +01:00
home chore(flake): update inputs 2021-11-22 18:45:50 +01:00
lib feat: improve flake structure 2021-08-08 17:48:48 +02:00
modules feat: improve flake structure 2021-08-08 17:48:48 +02:00
pkgs chore: update pop-shell 2021-10-26 14:20:31 +02:00
scripts build: fix setup-partitions script 2021-08-14 18:56:01 +02:00
services fix(rpi4): fix home-assistant config 2021-11-23 00:40:06 +01:00
system feat(nix): add shajra cache for hls with ghc 8.6.5 support 2021-10-29 20:26:43 +02:00
templates docs: update dotnet template 2021-03-04 15:11:09 +01:00
virtualisation feat: add virt-manager config 2020-10-03 16:56:19 +02:00
.editorconfig style: add .editorconfig 2020-03-21 16:54:32 +01:00
.envrc feat: setup pre-commit-hooks 2020-09-24 12:38:53 +02:00
.gitignore feat(rpi4): setup acme and cfdyndns 2020-10-03 16:36:57 +02:00
flake.lock chore(flake): update inputs 2021-11-27 20:13:59 +01:00
flake.nix chore(flake): update inputs 2021-11-27 20:13:59 +01:00
home-pc.nix fix: open port for AusweisApp2 2021-10-29 20:27:44 +02:00
LICENSE add LICENSE 2020-07-03 08:48:51 +00:00
README.md docs: mention partitioning script in README 2021-01-29 01:25:41 +01:00
rpi4.nix feat(rpi4): update config 2021-10-23 03:21:19 +02:00
work-pc.nix feat(pilot1): disable bumblebee 2021-08-10 17:01:52 +02:00

felschr's NixOS configuration

Installation

Clone the configuration into etc/nixos.

On a new machine run:

scripts/setup-partitions

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