My NixOS configuration
Find a file
2021-04-28 16:50:17 +02:00
desktop feat(pop-shell): update 2021-03-26 00:47:11 +01:00
hardware feat(rpi4): add media mount 2021-03-13 12:51:16 +01:00
home feat(neovim): update config 2021-04-13 15:15:09 +02:00
pkgs/deconz chore(rpi4): remove unused pydeconz 2021-02-16 10:59:18 +01:00
scripts docs: mention partitioning script in README 2021-01-29 01:25:41 +01:00
services feat(etebase-server): update configuration 2021-04-16 15:19:48 +02:00
system feat: add haskell tools 2021-01-16 17:54:59 +01: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 feat(flake): switch to upstream pre-commit-hooks.nix 2021-04-28 16:50:17 +02:00
flake.nix feat(flake): switch to upstream pre-commit-hooks.nix 2021-04-28 16:50:17 +02:00
home-pc.nix feat(home-pc): enable memtest86 boot option 2021-03-04 14:56:39 +01:00
key feat(rpi4): switch to key authentication for openssh 2020-10-03 19:16:21 +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 fix(rpi4): disable photoprism due to issues on aarch64 2021-04-04 20:34:32 +02:00
work-pc.nix fix: remove system.autoUpgrade 2021-02-16 16:51:10 +01: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