mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: move to wivrn, vencord
This commit is contained in:
parent
5c7dc38a13
commit
62a07510f9
18 changed files with 321 additions and 171 deletions
|
|
@ -4,9 +4,9 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkOption;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) str nullOr;
|
||||
inherit (lib.attrsets) filterAttrs mapAttrs;
|
||||
inherit (lib.attrsets) filterAttrs mapAttrs mapAttrs' nameValuePair;
|
||||
enabledHosts = filterAttrs (_n: v: v.config.services.syncthing.enable) self.nixosConfigurations;
|
||||
enabledSyncthings = mapAttrs (_n: _v: config.services.syncthing) enabledHosts;
|
||||
enabledDevices = mapAttrs' (_n: v: (nameValuePair v.device_name {id = v.device_id;})) enabledSyncthings;
|
||||
|
|
@ -44,8 +44,8 @@ in {
|
|||
# `syncthing generate --no-default-folder --config meep/`
|
||||
# I hope this helps! That's what the content of those secrets are from.
|
||||
|
||||
key = sops.secrets.syncthing-key.path;
|
||||
cert = sops.secrets.syncthing-cert.path;
|
||||
key = config.sops.secrets.syncthing-key.path;
|
||||
cert = config.sops.secrets.syncthing-cert.path;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue