No description
  • Nix 99.1%
  • Shell 0.9%
Find a file
Walter Leeper bad441b2a8
All checks were successful
Nix Flake Check / docker (push) Successful in 1m53s
move nixos specific profiles
2026-08-27 16:36:08 -05:00
.forgejo/workflows update the forgejo actions 2026-07-24 13:20:21 -05:00
configs move nixos specific profiles 2026-08-27 16:36:08 -05:00
hosts move nixos specific profiles 2026-08-27 16:36:08 -05:00
secrets remove k3s_token 2026-08-26 18:35:13 -05:00
tests update test 2026-08-12 09:53:39 -05:00
.gitignore change gitignore 2026-08-26 21:17:51 -05:00
flake.lock update flake.locak 2026-08-25 12:46:31 -05:00
flake.nix remove unused inputs 2026-08-08 15:48:51 -05:00
globals.nix add global hosts 2026-08-27 15:02:37 -05:00
README.md big ole reorganization 2026-08-26 18:26:21 -05:00
TODO.md add global hosts 2026-08-27 15:02:37 -05:00

Nix Configuration Overview

This repository contains my Nix configurations across various machine types, including NixOS, Nix-darwin, and Nix-standalone with Home Manager.

To customize this configuration for your needs:

  1. Replace values in /globals.nix with your own.
  2. Update the /secrets/secrets.nix file by replacing secrets and their filenames as necessary.
  3. Modify the /configs/home/accounts.nix file according to your requirements.
  4. Adjust the /flake.nix file to match your system configuration.

It is recommended to place this repository in $HOME/Nix, as shell functions expect it there.

To add a new host:

  1. Make a folder in the hosts folder with its hostname.
  2. Setup the host's default.nix file with its specific configs and imports from /configs.
  3. Set up its flake.nix entry.

The folder structure is:

📁 Nix
├── 📁 configs
│   ├── 📁 darwin  (Nix-darwin configs)
│   ├── 📁 home    (Home-manager configs)
│   └── 📁 nixos   (Nixos configs)
├── 📄 flake.lock  (Versioning)
├── 📄 flake.nix   (Define which machines are managed)
├── 📄 globals.nix (Global variables)
├── 📁 hosts
│   ├── 📁 host1   (Host1 configs and imports)
│   └── 📁 host2   (Host2 configs and imports)
└── 📁 secrets
    ├── 📄 default.nix (Imports secrets to hosts)
    └── 📄 secrets.nix (Define secret rules here)

A service's file should handle everything the service needs to function. (Firewall rules, user/groups & ownership, etc.). A folder may be used for a service if it helps readability. Files in /config/darwin should only be used by Nix-darwin systems. Files in /config/nixos should only be used by Nixos systems. Files in /config/home may be used by any home-manager systems.