messy code deserves a one-liner doc

This commit is contained in:
Joseph Hanson 2025-02-25 13:03:32 -06:00
parent f5e45209ec
commit d0496de0b3
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 26 additions and 17 deletions

View file

@ -2,23 +2,30 @@
## Goals
- [ ] Learn nix
- [ ] Services I want to separate from my kubernetes cluster I will use Nix.
- [ ] Approval-based update automation for flakes.
- [ ] Expand usage to other shell environments such as WSL, etc
- [ ] keep it simple, use trusted boring tools
- [ ] Learn nix
- [ ] Services I want to separate from my kubernetes cluster I will use Nix.
- [ ] Approval-based update automation for flakes.
- [ ] Expand usage to other shell environments such as WSL, etc
- [ ] keep it simple, use trusted boring tools
## TODO
- [x] Forgejo Actions
- [ ] Bring over hosts
- [x] Varda (forgejo)
- [x] Thinkpad T470
- [x] Legion 15 AMD/Nvidia
- [x] Telperion (network services)
- [ ] Gandalf (NixNAS)
- [x] Forgejo Actions
- [ ] Bring over hosts
- [x] Varda (forgejo)
- [x] Thinkpad T470
- [x] Legion 15 AMD/Nvidia
- [x] Telperion (network services)
- [ ] Gandalf (NixNAS)
## Links & References
- [truxnell/dotfiles](https://github.com//truxnell/nix-config/)
- [billimek/dotfiles](https://github.com/billimek/dotfiles/)
- [truxnell/dotfiles](https://github.com//truxnell/nix-config/)
- [billimek/dotfiles](https://github.com/billimek/dotfiles/)
## Upgrading the borgmatic template for reference
```sh
borgmatic config generate --source nixos/hosts/shadowfax/config/borgmatic/borgmatic-template.yaml --destination nixos/hosts/shadowfax/config/borgmatic/borgmatic-t
emplate.yaml --overwrite
```

View file

@ -1,8 +1,10 @@
{ lib, ... }:
{lib, ...}:
# Includes all files with .nix suffix in the current directory except default.nix
let
dir = ./.;
files = lib.filterAttrs (name: type:
type == "regular" && name != "default.nix" && lib.hasSuffix ".nix" name
files = lib.filterAttrs (
name: type:
type == "regular" && name != "default.nix" && lib.hasSuffix ".nix" name
) (builtins.readDir dir);
imports = map (name: "${dir}/${name}") (builtins.attrNames files);
in {