My Nix configuration (Hosts, Flakes, Home Manager, ...)
Find a file
2024-06-17 11:45:31 -04:00
.github sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
.vscode sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
android 25.04 2024-06-06 11:17:28 -04:00
darwin sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
docs sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
examples 25.04 2024-06-06 11:17:28 -04:00
home-manager minor fixes 2024-06-13 05:20:19 -04:00
lib sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
modules/home-manager home-manager modules 2023-09-26 14:39:38 -04:00
nixos nix fmt 2024-06-13 05:20:51 -04:00
overlays sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
pkgs sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
scripts sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
sdcard 25.04 2024-06-06 11:17:28 -04:00
shells 25.04 2024-06-06 11:17:28 -04:00
.editorconfig A fork of Misterio77 and his standard template. 2023-09-15 10:53:38 -04:00
.envrc fixes 2023-09-22 15:38:16 -04:00
.gitattributes A fork of Misterio77 and his standard template. 2023-09-15 10:53:38 -04:00
.gitignore disk labels etc. 2023-09-22 13:06:18 -04:00
.sops.yaml sd-card 2024-05-24 14:03:22 -04:00
deploy.sh A fork of Misterio77 and his standard template. 2023-09-15 10:53:38 -04:00
flake.lock update 2024-06-17 11:45:31 -04:00
flake.nix 25.04 2024-06-06 11:17:28 -04:00
LICENSE sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
nixpkgs.nix sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
NOTES sd-card 2024-05-24 14:03:22 -04:00
README.md sync with tcarrio (#7) 2024-05-23 15:02:20 -04:00
shell.nix 25.04 2024-06-06 11:17:28 -04:00

My NixOS configurations

Here's my NixOS/home-manager config files. Requires Nix flakes.

This work is really a 90% copy/paste from [Tom Carrio(https://github.com/tcarrio/nix-config) so you'd be much better off looking at his work than mine while I'm off studying Nix Pills and trying to keep up.

How to bootstrap

All you need is nix (any version). Run:

nix-shell

If you already have nix 2.4+, git, and have already enabled flakes and nix-command, you can also use the non-legacy command:

nix develop

nixos-rebuild --flake . To build system configurations

home-manager --flake . To build user configurations

nix build (or shell or run) To build and use packages

sops To manage secrets, example:

export GPG_TTY=$(tty)
gpgconf --reload gpg-agent
EDITOR=vi sops --config .sops.yaml nixos/_mixins/secrets.yaml

Secrets

For deployment secrets (such as user passwords and server service secrets), I'm using the awesome sops-nix. This keeps all secrets encrypted with my personal PGP key (stored only within a YubiKey I keep in my safe at home), as well as the relevant systems's SSH host keys and any other sensitive materials.

On my desktop and laptop, I use pass for managing passwords, also encrypted using (you bet) my PGP key. This same key is also used for mail signing, as well as for SSH'ing around. You can find my pub key on Keybase.io or other information on my site.