My unified nix flake for all configuration management.
Find a file
2024-01-19 09:39:21 -06:00
disko Dragon updates 2024-01-06 11:43:30 -06:00
lib Dev ports 2024-01-19 09:39:21 -06:00
modules Merge remote-tracking branch 'origin/main' 2024-01-16 21:15:22 -06:00
nixos Dev ports 2024-01-19 09:39:21 -06:00
overlays Using the normal lts kernel seems to resolve my suspend/sway issues 2023-10-22 08:15:08 -05:00
pkgs WIP move to template 2023-10-03 11:52:44 -05:00
secrets Server up 2023-11-02 14:38:37 -05:00
templates Update flake inputs 2024-01-05 10:21:48 -06:00
.gitignore wip firewall for router 2023-11-02 10:01:58 -05:00
.sops.yaml Initial commit 2023-09-04 11:40:30 -05:00
flake.lock Melee's back 2024-01-13 23:43:06 -06:00
flake.nix WIP 2024-01-04 22:24:18 -06:00
pre-commit.bash Add todo item to enforce certain commit message format 2023-11-12 11:24:06 -06:00
readme.md Increase foxtrot scale for a little more breathing room 2023-11-21 14:59:08 -06: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}

Setup

If you're gonna change stuff you had better setup the pre-commit hook:

$ ln -s $PWD/pre-commit.bash .git/hooks/pre-commit

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 profile install github:nix-community/home-manager
$ FLAKE_ATTR=base-x86_64-linux
$ 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