nix/readme.md

2.1 KiB


Nix for lytedev

flake check status build status

My Nix monorepo and main Flake.

  • Desktop configurations
  • Laptop configurations
  • Home server configurations
  • Remote server configurations
  • Home router configurations
  • Packages
  • Fonts

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

  • gnome missing icons
  • ghostty only notify if window or pane or w/e is not focused
  • more-easily manage gitea repo mirroring to github?
  • a.lyte.dev for web analytics is down
  • grafana and stuff for monitoring
  • alerts?
  • Broot config?

Long Term