My NixOS configuration
Find a file
2020-12-25 12:01:10 +01:00
desktop fix(gnome): fix input sources 2020-10-20 15:45:42 +02:00
hardware feat(rpi4): increase gpu_mem to 320 2020-10-07 02:03:30 +02:00
home feat(neovim): update config 2020-12-25 12:01:10 +01:00
pkgs feat: expose pydeconz 2020-10-11 08:28:52 +00:00
services feat(rpi4): add owntracks config 2020-12-02 10:33:12 +01:00
system feat(vpn): enable wireguard kernel module 2020-11-14 11:20:59 +01:00
templates style: format nix files 2020-09-23 13:19:19 +02: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 2020-12-25 11:58:44 +01:00
flake.nix chore(flake): update inputs 2020-11-07 11:56:46 +01:00
home-pc.nix chore: update {system,home}.stateVersion to 20.09 2020-12-05 20:15:41 +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 fix(README): fix typo 2020-10-22 00:12:14 +02:00
rpi4.nix feat(rpi4): add owntracks config 2020-12-02 10:33:12 +01:00
work-pc.nix chore: update {system,home}.stateVersion to 20.09 2020-12-05 20:15:41 +01:00

felschr's NixOS configuration

Installation

Clone the configuration 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