My NixOS configuration
- Nix 86.6%
- Lua 9.2%
- Nushell 2.9%
- Shell 1.3%
|
Some checks failed
Test / tests (push) Failing after 52m24s
zj-radar classifies a pane by its argv, so an agent started through `nono run -- <agent>` was labelled "nono run" and opencode2 was not recognized as an agent at all. - patch zj-radar so wrapper entries can name a subcommand (`nono run`) and skip the wrapper's flags up to `--` - expose the opencode binary as `opencode` so it matches AGENT_NAMES - grant the sandbox read access to zellij's IPC sockets, without which the bridge cannot broadcast - link zj-radar's vendored opencode bridges from the flake input and drop the local pane-name plugin, which the patch makes redundant - add libnotify so the rail's desktop notifications find `notify-send` - use compact-bar instead of the status bar in the radar layout templates |
||
|---|---|---|
| .forgejo/workflows | ||
| desktop | ||
| hardware | ||
| home | ||
| hosts | ||
| lib | ||
| modules | ||
| overlays | ||
| pkgs | ||
| scripts | ||
| secrets | ||
| services | ||
| system | ||
| templates | ||
| virtualisation | ||
| .editorconfig | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| AGENTS.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
felschr's NixOS configuration
Installation
- Create config for new host in
hosts/<host>/1.1. thehosts/<host>/hardware.nixwill be generated in the following step - Install NixOS via
disko-install:
1.1. When asked enter the LUKS passphrase 1.1. When asked enter the user passwordsudo nix --experimental-features 'nix-command flakes' \ run 'git.felschr.com/nixos-config#install' -- \ --flake .#<host> \ --disk <disk-name> <disk-device>
Now set up a device key that will be used by agenix.
Create a new key and re-encrypt the secrets on an existing device & pull the changes.
To create a new key run:
mkdir -p /mnt/etc/secrets/initrd
ssh-keygen -t ed25519 -N "" -f /mnt/etc/secrets/initrd/ssh_host_ed25519_key
You will likely need to temporarily set age.identityPaths for the installation to succeed:
age.identityPaths = "/etc/secrets/initrd/ssh_host_ed25519_key";
To install run the following command where <host> matches outputs.nixosConfigurations.<host> in flake.nix:
nixos-install --flake '/mnt/etc/nixos#<host>'
After the installation finished, set a password for the user:
passwd <user>
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#<host>' --target-host user@hostname --use-remote-sudo