aboutsummaryrefslogtreecommitdiff
path: root/modules/apps/juandelacosa.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apps/juandelacosa.nix')
-rw-r--r--modules/apps/juandelacosa.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/apps/juandelacosa.nix b/modules/apps/juandelacosa.nix
index 8df6af0..d417727 100644
--- a/modules/apps/juandelacosa.nix
+++ b/modules/apps/juandelacosa.nix
@@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:
let
- inherit (builtins) filter toString;
+ inherit (builtins) toString;
inherit (lib) types mkOption mkEnableOption mkIf hasPrefix
concatStrings optionalString;
inherit (types) str path int nullOr;
@@ -17,8 +17,6 @@ let
else " -s '${cfg.socket}'")
];
- keys = filter (f: f != null && hasPrefix "/run/keys/" f) [ cfg.myFile ];
-
in {
options.nixsap.apps.juandelacosa = {
enable = mkEnableOption "Juan de la Cosa";
@@ -51,7 +49,7 @@ in {
config = mkIf cfg.enable {
nixsap.system.users.daemons = [ cfg.user ];
- nixsap.deployment.keyrings.${cfg.user} = keys;
+ nixsap.deployment.keyrings.${cfg.user} = [ cfg.myFile ];
systemd.services.juandelacosa = {
description = "captain of the MariaDB";
wantedBy = [ "multi-user.target" ];