diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
| commit | a45de9e2e216cf73e976192814cdbdbb9164be30 (patch) | |
| tree | 4c2cb500b9d568693597a676ef2b8d27a93284d3 /lib/files.nix | |
| parent | prepare kaworu host for new pc (diff) | |
| download | dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.gz dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.bz2 dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.zip | |
make lib extendable with our additions
Diffstat (limited to 'lib/files.nix')
| -rw-r--r-- | lib/files.nix | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/files.nix b/lib/files.nix index 960d1d0..c75508c 100644 --- a/lib/files.nix +++ b/lib/files.nix @@ -1,8 +1,8 @@ -{lib, ...}: let +{lib}: let # gets list of files from a directory getFiles = folder: lib.attrsets.mapAttrsToList (name: _: "${folder}/${name}") (builtins.readDir folder); - +in { # gets custom set of root certs certs = getFiles ../files/certs; @@ -15,9 +15,4 @@ gpgKeys = builtins.filter (filePath: lib.strings.hasSuffix "asc" filePath) (getFiles ../files/keys); -in { - inherit getFiles; - inherit certs; - inherit sshKeys; - inherit gpgKeys; } |