diff --git a/.sops.yaml b/.sops.yaml index ced7ec5a..5aeeeec3 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -44,3 +44,8 @@ creation_rules: - *pc-installer - *rainbow-resort - *thinkrac + - path_regex: programs/desktop/syncthing/rainbow-resort.yaml$ + key_groups: + - age: + - *base + - *darkkirb diff --git a/programs/desktop/syncthing/default.nix b/programs/desktop/syncthing/default.nix index 40591845..f093d475 100644 --- a/programs/desktop/syncthing/default.nix +++ b/programs/desktop/syncthing/default.nix @@ -1,6 +1,24 @@ -{...}: { +{systemConfig, ...}: { services.syncthing = { enable = true; tray.enable = true; }; + + sops.secrets.".local/share/syncthing/cert.pem" = { + sopsFile = ./${systemConfig.networking.hostName}.yaml; + path = "${config.xdg.dataHome}/syncthing/cert.pem"; + }; + sops.secrets.".local/share/syncthing/https-cert.pem" = { + sopsFile = ./${systemConfig.networking.hostName}.yaml; + path = "${config.xdg.dataHome}/syncthing/https-cert.pem"; + }; + sops.secrets.".local/share/syncthing/key.pem" = { + sopsFile = ./${systemConfig.networking.hostName}.yaml; + path = "${config.xdg.dataHome}/syncthing/key.pem"; + }; + sops.secrets.".local/share/syncthing/https-key.pem" = { + sopsFile = ./${systemConfig.networking.hostName}.yaml; + path = "${config.xdg.dataHome}/syncthing/https-key.pem"; + }; + home.persistence.default.directories = ["${config.xdg.dataHome}/syncthing"]; } diff --git a/programs/desktop/syncthing/rainbow-resort.yaml b/programs/desktop/syncthing/rainbow-resort.yaml new file mode 100644 index 00000000..45fb7e1c --- /dev/null +++ b/programs/desktop/syncthing/rainbow-resort.yaml @@ -0,0 +1,36 @@ +.local: + share: + syncthing: + cert.pem: ENC[AES256_GCM,data:XoZvNPbPuYzDPO+ElSdl/hjHchN8u6xvqhM3e58IHSvUu3Q9A8VmHAqi+7D1zDfDWQG+s/VndC+2aPphZWFoDb7tNBV0WcTnfEzAAr9AmjEJSMI5PNbHgGkTioay2i3Woj4VAarMSvrvwIIN93KoGpEicXFT47+lZYa8uaJX5/KB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:str] + https-key.pem: ENC[AES256_GCM,data:uh3fRdvMzO9WTtldQA9LB2g1UMxwavornE0vZRhitPurIU8d3cYIB6QoXUhvIOVgUptfTFFnzXTDaiPz++Iy4DxceJpf1Om22Iy+TtqG5pylpW9KNTMaKeElKKpqFEQ5QbkAy446MspaphcZN10jFjjt+Vad82pP1bA+HQWOl48LIbCB0HSLmYKtByoofKTE/+iE4Y1UmPy86Tpvi6UUkesNqVJwo/2bnR1oQIFihaemSp31uR0O0BQNmIMkvKWJrxgQSOki8FSfXc/188ofEajqSxvd8Gj036QYSVWA8+U5yqmbBtkeb2DL1juM+YIPKHINSxIkUOZAe0DnUWx244SoofpJMculBQDSf1ECaFVRQcwJu77jA5LTjCerVidU,iv:8ZUOrKxUxlFCT3M8rPBksNt1AQogxphUCRWAZJvR59Y=,tag:TR3dzl1DkvQ6K13OfDEn3w==,type:str] + key.pem: ENC[AES256_GCM,data:/uuo6cQI8oLZQ+via85975P87sqdpwzPOj4pzUeAQGvpJTxngRv1XHYNF+5h/+k5RShOcm7LInkSpiSY9Yquxb9d08qG853njIl3SgAY7YuiAvJomeSdxmE6+IxQ+JctbLtLcL2eK6ZSMorlXEbOctUsXXjIO24eAeUQbeyOz7b2iwORwYTKHpC84UWB7vM3RPo/ZwyAdHLoxzq6W4Vyr+eH1opN9N/IJBneoma77iNhz1wEB5kEV4jcbPu9V02Pn/WWyvHn0vMaB2IdEkp4FgE4t61mt9hvm9SII1hVZqqoWCfW3TgTEwtlA4C0dPMNYOKVQaDD3vNr0V5b483JHFZ7/RKOMAa5gmUaXg9A3CJp/5qHw3EPOgNZR18m+vrc,iv:WjzTk4Rt1nwzvrny1zDBR+r9Z7gRNWm16cDeaKphof0=,tag:OshNuav6hhRNchwO8mTnZA==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1tltjgexkp5fz3rum4j0k66ty5q4u8ptvkgkepumd20zal24g2qfs5xgw76 + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA0c1kwWDg0TlNiTVBmNjhW + QWFjd2V3WGM5NUU3aFFjYndVSkg1bklnYVhnCjhWZEtreVFsQTNyUGtsMnBPMTYw + WHZINWgwZG1sREgxc2N5UzZVMmhweU0KLS0tIHFSaEVuTDlVL2UxMzhSTHE3eGs5 + UE9vd253VEw4L3lkeEhacE5zZnptQWcK++zgfyq67XviauQzMGnbfvLWCboA612v + aPnQOxD9ygk4qWtMmTconLQyNDzJ/ov/7Qcjj93awuu3D1SCGzBwug== + -----END AGE ENCRYPTED FILE----- + - recipient: age15g6tzvcmcp3ae4hwnn4pwewat6eq9unlhtjrlaka6rf94ej9dd5qqpgt7u + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByRXNxNkt2M3BOQUJiRnRJ + UWVpNGhRQUFYc1VkMnJ2NStpZUNaNWtzQ2xvCi85WmdySy9nalpLS1lBL1dSZE0y + UGJLMndNSUZNMjVlTVYvemxFVy8yekUKLS0tIDczay9Xcit1K0JpaGdBNDh2aUFJ + elhERmEvNTU2NjA4YW44YXdIa2Q4S2cKk60Ifguce/7UR73QyaFkc5r9BL/kSZwu + V4JNy0KmhbMOTN6VW9oAe7DILzS/9Gay12CNgouHtPVbp+WrI7zvmQ== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2024-11-08T12:45:11Z" + mac: ENC[AES256_GCM,data:kPV0njJKk9U1ZjohrCMAYeAoB5XWMR4pI+AL14PYuTNiPrXXX2mH+nYwld2Z6NU8QBBKQaqBjHt51oNlEUTxmSbYEFszph/54J2UrGrpPl+MesBehFTTy1HGFawbo2+7qota00qAEWdHj6PqfhnXX38EN/vSLfwYrjrrD3SF/ho=,iv:0g6XgMnNGmtPWmwdSMPLuLxN3/Y5ERfX0dtFcebUL+0=,tag:YeWY+pzs1SDtkYyyX6W8Wg==,type:str] + pgp: [] + unencrypted_suffix: _unencrypted + version: 3.9.1