My unified nix flake for all configuration management.
Go to file
Daniel Flanagan b157935e93
All checks were successful
/ check (push) Successful in 2m56s
Merge remote-tracking branch 'origin/main'
2024-07-26 11:30:11 -05:00
.forgejo/workflows Add node to beefcake since it is needed to run forgejo actions on the host 2024-07-24 13:35:14 -05:00
disko No extras because I don't understand disko yet 2024-07-17 22:14:31 -05:00
lib Moving thinker back to nixos 2024-07-17 20:22:16 -05:00
modules Merge remote-tracking branch 'origin/main' 2024-07-26 11:30:11 -05:00
nixos Merge remote-tracking branch 'origin/main' 2024-07-26 11:30:11 -05:00
overlays flake root cleanup 2024-06-28 09:51:25 -05:00
packages Dragon and beefcake build 2024-06-28 14:01:32 -05:00
secrets Scope runner to just my forgejo user 2024-07-24 11:35:18 -05:00
templates Template 2024-07-09 11:12:55 -05:00
.envrc Fprintd fixes? 2024-03-24 14:34:44 -05:00
.gitignore Implement pre-commit using the pre-commit-hooks flake 2024-02-23 10:35:41 -06:00
.sops.yaml Initial commit 2023-09-04 11:40:30 -05:00
flake.lock Pass checks 2024-07-24 13:20:06 -05:00
flake.nix Tweaks 2024-07-24 13:31:28 -05:00
readme.md Implement pre-commit using the pre-commit-hooks flake 2024-02-23 10:35:41 -06:00
safe-remote-upgrade.bash Router alive, but not routing 2024-07-17 14:18:35 -05:00

Nix

My grand, declarative, and unified application, service, environment, and machine configuration, secret, and package management in a single flake. ❤️ ❄️

NOTE: Everything in here is highly specific to my personal preference. I can't recommend you actually use this in any way, but hopefully some stuff in here is useful inspiration.

Quick Start

$ nixos-rebuild switch --flake git+https://git.lyte.dev/lytedev/nix#${FLAKE_ATTR}

You don't have even have to clone this crap yourself. How cool is that! But if you do, it looks like this:

$ nixos-rebuild switch --flake ./repo/dir/for/nix#${FLAKE_ATTR}

Secrets

If you're deploying anything secrets-related, you will need the proper keys:

$ mkdir -p ${XDG_CONFIG_HOME:-~/.config}/sops/age
$ pass age-key >> ${XDG_CONFIG_HOME:-~/.config}/sops/age/keys.txt

NixOS

$ nixos-rebuild switch --flake .

Not NixOS

NOTE: I pretty much solely use Home Manager as a NixOS module presently, so this is not fully supported.

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
$ nix run github:nix-community/home-manager switch --flake git+https://git.lyte.dev/lytedev/nix#${FLAKE_ATTR}

Internal/Advanced Usage

See lib/internal.md.

To Do

Short Term

Long Term