My NixOS configuration
Find a file
Felix Schröter c95fe27950
feat(neovim): switch to filetype.lua
Replaces old filetype.vim & scripts.vim.
2022-05-03 20:46:50 +02:00
desktop chore(flake): update inputs 2022-03-29 22:26:46 +02:00
hardware feat(hardware): use RADV by default 2022-04-05 19:40:04 +02:00
home feat(neovim): switch to filetype.lua 2022-05-03 20:46:50 +02:00
lib feat: improve flake structure 2021-08-08 17:48:48 +02:00
modules feat: setup email notification on systemd failures 2022-05-01 16:42:56 +02:00
pkgs/deconz refactor: fix nix formatting 2022-01-01 02:14:40 +01:00
scripts fix(scripts): fix creation of swapfile with holes 2022-02-09 21:32:04 +01:00
services fix(backups): fix & improve ripgrep matching 2022-05-01 16:44:29 +02:00
system feat(neovim): use nerdfonts & avoid emojis that break neovim 2022-03-30 00:09:08 +02:00
templates docs: update dotnet template 2021-03-04 15:11:09 +01:00
virtualisation feat: enable libvirt tools 2022-02-05 01:36:56 +01: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 2022-05-01 18:10:49 +02:00
flake.nix feat(neovim): replace vim-kitty-navigator with nvim-kitty-navigator 2022-04-08 12:11:39 +02:00
home-pc.nix feat: setup email notification on systemd failures 2022-05-01 16:42:56 +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
rpi4.nix feat: setup email notification on systemd failures 2022-05-01 16:42:56 +02:00
work-pc.nix chore: update state versions 2021-12-01 10:47:51 +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. 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