messy code deserves a one-liner doc
This commit is contained in:
parent
f5e45209ec
commit
d0496de0b3
2 changed files with 26 additions and 17 deletions
|
@ -22,3 +22,10 @@
|
|||
|
||||
- [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
|
||||
```
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{lib, ...}:
|
||||
# Includes all files with .nix suffix in the current directory except default.nix
|
||||
let
|
||||
dir = ./.;
|
||||
files = lib.filterAttrs (name: type:
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue