diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 08:52:51 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 08:52:51 -0700 |
| commit | 61fa2329f553f9c7962e968e1ec98ae675903b70 (patch) | |
| tree | 0afdbf7c8fddda1718abee49db6206a5f8df5b09 /home/modules/onepassword.nix | |
| parent | directories first (diff) | |
| download | infra-61fa2329f553f9c7962e968e1ec98ae675903b70.tar.gz | |
users -> home
Diffstat (limited to '')
| -rw-r--r-- | home/modules/onepassword.nix (renamed from users/modules/onepassword.nix) | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/users/modules/onepassword.nix b/home/modules/onepassword.nix index d98df25..d1851ea 100644 --- a/users/modules/onepassword.nix +++ b/home/modules/onepassword.nix @@ -16,11 +16,12 @@ let keyToToml = key: let - lines = - [ "[[ssh-keys]]" ] - ++ optional (key.item != null) ''item = "${key.item}"'' - ++ optional (key.vault != null) ''vault = "${key.vault}"'' - ++ [ ''account = "${key.account}"'' ]; + lines = [ + "[[ssh-keys]]" + ] + ++ optional (key.item != null) ''item = "${key.item}"'' + ++ optional (key.vault != null) ''vault = "${key.vault}"'' + ++ [ ''account = "${key.account}"'' ]; in concatStringsSep "\n" lines; in |
