My NixOS configuration
Find a file
2022-08-06 16:03:12 +02:00
desktop fix: add wl-clipboard 2022-06-29 17:56:09 +02:00
hardware feat: migrate home-server to LattePanda 3 Delta 2022-08-03 03:15:06 +02:00
home feat(editors): add helix 2022-08-02 20:10:44 +02:00
lib feat: improve flake structure 2021-08-08 17:48:48 +02:00
modules chore(nix): switch to stable nix package 2022-05-19 02:59:04 +02:00
pkgs/deconz feat: update deconz 2022-08-03 01:30:46 +02:00
scripts feat(scripts): add zstd compression level option 2022-08-02 20:09:27 +02:00
secrets chore: update restic b2 secret 2022-06-10 12:50:24 +02:00
services feat: migrate home-server to LattePanda 3 Delta 2022-08-03 03:15:06 +02:00
system fix(networking): enable resolvconf again 2022-07-13 14:59:33 +02:00
templates docs: update dotnet template 2021-03-04 15:11:09 +01:00
virtualisation feat(virtualisation): switch to rootless docker 2022-07-10 14:11:40 +02:00
.editorconfig style: add .editorconfig 2020-03-21 16:54:32 +01:00
.env.example chore: add restic variables to .env.example 2022-05-12 11:45:10 +02:00
.envrc chore: add restic secrets to .env 2022-05-09 12:26:12 +02:00
.gitignore feat: set up agenix secrets management 2022-05-05 19:57:48 +02:00
.gitlab-ci.yml build: combine CI jobs 2022-06-28 02:47:15 +02:00
flake.lock chore(flake): update inputs 2022-07-30 08:43:52 +02:00
flake.nix feat: migrate home-server to LattePanda 3 Delta 2022-08-03 03:15:06 +02:00
home-pc.nix feat: migrate home-server to LattePanda 3 Delta 2022-08-03 03:15:06 +02:00
home-server.nix fix(home-server): add missing kernel module for initrd networking 2022-08-06 16:03:12 +02:00
LICENSE add LICENSE 2020-07-03 08:48:51 +00:00
README.md docs: update README 2022-02-11 00:45:24 +01:00
work-pc.nix feat: migrate home-server to LattePanda 3 Delta 2022-08-03 03:15:06 +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. Update the configuration according to the script output, if necessary. Btrfs mount options likely need to be added, for example.

Reference this hardware config in a nixosConfigurations.<config> section in flake.nix.

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

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

Updating

Update all flake inputs:

nix flake update

Update a specific flake input:

nix flake lock --update-input <input>

Rebuilding the system

Rebuild the system:

sudo nixos-rebuild switch

Rebuild the system for a remote machine:

sudo nixos-rebuild switch --flake '/etc/nixos#<config>' --target-host user@hostname --use-remote-sudo