From b23b09a7b3f1feeec4cca73fba6dd6dfec8cc2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 17 Nov 2024 11:02:31 +0100 Subject: [PATCH] add krdp --- .sops.yaml | 5 +++++ config/kde/home-manager.nix | 1 + config/kde/krdp.nix | 11 +++++++++++ config/kde/krdp.yaml | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 config/kde/krdp.nix create mode 100644 config/kde/krdp.yaml diff --git a/.sops.yaml b/.sops.yaml index 333614a7..5d1aafa6 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -56,6 +56,11 @@ creation_rules: - *rainbow-resort - *thinkrac - path_regex: programs/desktop/pim/secrets.yaml$ + key_groups: + - age: + - *base + - *darkkirb + - path_regex: config/kde/krdp.yaml$ key_groups: - age: - *base diff --git a/config/kde/home-manager.nix b/config/kde/home-manager.nix index e7884abb..48905ff6 100644 --- a/config/kde/home-manager.nix +++ b/config/kde/home-manager.nix @@ -5,5 +5,6 @@ imports = [ plasma-manager.homeManagerModules.plasma-manager ./theming.nix + ./krdp.nix ]; } diff --git a/config/kde/krdp.nix b/config/kde/krdp.nix new file mode 100644 index 00000000..1ad53fc5 --- /dev/null +++ b/config/kde/krdp.nix @@ -0,0 +1,11 @@ +{ config, ... }: +{ + programs.plasma.configFile.krdpserverrc.General = { + Autostart = true; + Certificate = config.sops.secrets.".local/share/krdpserver/krdp.crt".file; + CertificateKey = config.sops.secrets.".local/share/krdpserver/krdp.key".file; + Users = "darkkirb"; + }; + sops.secrets.".local/share/krdpserver/krdp.key".sopsFile = ./krdp.yaml; + sops.secrets.".local/share/krdpserver/krdp.crt".sopsFile = ./krdp.yaml; +} diff --git a/config/kde/krdp.yaml b/config/kde/krdp.yaml new file mode 100644 index 00000000..755fb8e8 --- /dev/null +++ b/config/kde/krdp.yaml @@ -0,0 +1,34 @@ +.local: + share: + krdpserver: + krdp.key: ENC[AES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4gfoIi9T00EDlffNT446l2/3EbTNiW7HGYPD0hFyBDz7T5sOLS4Pv/hEDt5Yn9Fgyh+k434PuVcLxCtqJ+XMVU5U2hKukkk9MvezlbeH+w6dVRp3IkSWVE5SaIHZZmdOQGKINXOd7ez274qgMcFfWXpfw8MsbZU6VfK8orpmhCj5agSfiuZSLQRhonsaBbh/xzfXcThy51E4eqIZTMl2DrzKnN1+R061C0n2yhNG4ftZqsyqfEtMSkq5sUGhjl8H+aWFl+go2wsZhRcpFQa6dcZFmJvHblWnWPvfAesYoaVr7ZtGKLgA2Pt1Q9RE/5PdSfKZbziFIEGNpx4v5yt4hRwC0n+lCL6fm0vJ124gdufizxWoY7BKsi56cwYaeRrYARJ8OUl901DQNIbHNvfjrnUUqIQsn4CYT3bp78AxSRZLTWbS9yrm4K6pVUiJBI8KdvHhLaEYfGhP0+apaw/OT1x2McmH/gIBuxjanDs7OWWJ/D8OUdM9Dv6WNV6kitS8NMLmQaOhEMxt/plOGrGzzk5VgiDxmc/J8O5AFDc0XQLYy0rTR9h7Gj6oDnlIZahtL0qxSvO7QdG0fxho+zqT+N7JW92iZs6OhdkUIeUelBDtMXsstbhmx1/DBQrKhUJjhOVjoJE724Xhuu0mIOTznvaiwK7wbSLz5kOykvUIXoeaV74CQAn16Kv/JhHz4v6+7ZWXSp5BGe7RXXPpGtyb+W23dMOPxaRkQnHTh2nTET1Sr1FnyL0Ei5Je9uZ6NjubxlTRRgYPhRsOkr5/TmCnN0RtMaZxpvhB3s+d8HfvXE13zn0AVYTO,iv:AjoxETlmSVqKF2lEc73mKrtSV5HbKOQPLIUWUAdiwuo=,tag:m95ON0puJ+bXGF+vrWYd8g==,type:str] +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1tltjgexkp5fz3rum4j0k66ty5q4u8ptvkgkepumd20zal24g2qfs5xgw76 + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA3WUQyb0dmRElyemJ2RDlE + ZzR1WE1VR2hNNUs3YlFObWdESmNYTDI1b0NzCk5SNXBCaUlRcFh4QXk1WmVseHdF + YUV4M0tUWlVLSUxKdGMzVXRkdERGWWcKLS0tIGxBYlJXUjIvSXZxRG9mMk14YTlu + RVp3VWxEQUtZdktoemVmN2FMYWZIUmMKV7/6sHEvevafH/yf3sEqpsgFwJefCoE+ + dl9mzJ/RDjcIQMllJskdcqYRSMPwBLG2+doxIpJ1rZkGqa2t0unarw== + -----END AGE ENCRYPTED FILE----- + - recipient: age15g6tzvcmcp3ae4hwnn4pwewat6eq9unlhtjrlaka6rf94ej9dd5qqpgt7u + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBJUFo1SEhKbm5PUjFNVjBl + RlNpakxRTkVSY1RSSzhBeTBUSjE5RzhVQmpBCmx0aGcyY0lORmFCWFlIWGlPZ2ZT + RmQycEZTWWFVZXRVZk9JcU1JZ1ViTlEKLS0tIGxOR09MSmVKVm44Q0NtbFFqUklN + aE52LzRtc25GUG9ibGsxcXJWaTZlQWMKafTEZA7jS2D/lIR05ham1axBmKh+v+6F + EZnTVwFpyFzw/Kpbc6PHQ6D+/7gq75tZOrbllH7bUNeWphUyC+N8Vw== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2024-11-17T10:00:38Z" + mac: ENC[AES256_GCM,data:4HH7jjZBZY621EA4beI/hIuuXvqztJT1x3dTGSNshZzntIKealr74blBdwy+Fb/mPeJH/WuA4XVXcjupZhKN76nM5/BbW1w4fOmP3Hjpo0LHsc6I7J/BgoMv3SItXQdRGgQGE9XivbS5zieb/+NFl0eTvT6jIlUQUznTOOmGDyU=,iv:RTKUVAAieUPKXCeT0/5PxMPNOPxPAkP9ZqPHzamVRa0=,tag:wwMpIIlus/R1RQdOa7MLmg==,type:str] + pgp: [] + unencrypted_suffix: _unencrypted + version: 3.9.1