From 01712acef7954a3c6d002a0a2957db1f03903d09 Mon Sep 17 00:00:00 2001 From: b12f Date: Thu, 14 Nov 2024 12:18:28 +0100 Subject: [PATCH] ehex: add cloudflare-warp --- modules/graphical/default.nix | 2 ++ modules/nix/default.nix | 1 + secrets/de.ehex.infinity-key.age | 23 +++++++++++++++++++++++ secrets/secrets.nix | 1 + users/b12f/ehex.nix | 19 +++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 secrets/de.ehex.infinity-key.age diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 6f146a6..032761f 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -46,6 +46,8 @@ in { glib xdg-utils xorg.xbacklight + + desktop-file-utils ]; variables = sessionVariables; diff --git a/modules/nix/default.nix b/modules/nix/default.nix index bba8b79..e4a7d33 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -12,6 +12,7 @@ "steam-run" "hplip" "cups-brother-hl3140cw" + "cloudflare-warp" "uhk-agent" "uhk-udev-rules" ]; diff --git a/secrets/de.ehex.infinity-key.age b/secrets/de.ehex.infinity-key.age new file mode 100644 index 0000000..29a47a5 --- /dev/null +++ b/secrets/de.ehex.infinity-key.age @@ -0,0 +1,23 @@ +age-encryption.org/v1 +-> ssh-ed25519 b0WFDg VzJXFJUcmIYv0lHvTBdRdMo7KDQHyNAC9k8tfBxYSWA +0O+CzvxyZeRg3A7vCUSmljZBE2a909Xk827G4CE2ABY +-> ssh-rsa kFDS0A +FepgY4rdDxv8+IVht60e+w85WatSZl9qCRLv+X2K/eSiL44cY9Lrb8bksVAF5Pim +kIMG7pg5J9ZU/YjYHX2Og0Hmm4Nbk2qtkBCMs9/VGU8E9jgNYkhwErsddgtGAUc6 +Qso9oT+JPcwOFDajnhMhRwb1W7grFAqSeGpcf3xXaFPYwWM6PM1Roxrvf5aVT2pk +od1ABMQ36bLtJ9avd5b6EylA6MDz+GCNPAchDdwKzSkTYAkbk35QRaMoo09ff06e +3VcYrGiuuWzLnIgnnZF+RXfuOn9aUHWfdqOjQJxlmDyzkYgapm2qSSWCjfNxJwCo +HScoMt63trW7ZhuX8doIfBdVzKRH+f/GZARWcc5AIJwhM9ramwdzNKbVpVMqJGbs +hjYK40YCuMWkP54TRJuWgbFhhAxNbmFVxtrefaeiG4P+pcchcavpQjSDoGAy1HjY +HMd3idIy9aogWDSfCp9XgqcEDahQ+ApZPtJYAs5osu9s3fRcZIFQxYi0vRkHPc3M +NvdxRhnQIuDM6ZvXjxq0jUXSkvuL35PU9/G4w9dhS2gtFMFjKGruFM5Oac8Q67jp +fxqvuq1q3O1FYzc/GVw4bnlCSexcOSx0/+DiSdPctmKgDp3xzwCbo/HwWpxz6+5q +sFBhy2IKP9478eLsrHYNXjm7+4kq8Z8H906dRpsd7GE +-> piv-p256 zqq/iw Au1kfk4tP55SIXmyt60zexzJF/dy5G0NU7qSH92L0BKk +x7FPprYbigNa5lDpYZdRpNd9KFqVZzK248N2SwfEw4A +-> piv-p256 vRzPNw AiYxb+CFllm+qfl/ZZe711Lj1KSLudjoPjVvjWh+zx/1 +GRa0XqvIck0tVc/c8HRAHPmin2PfwPnr4jLj+oeqS5M +--- zkokIeN9PyN4Vud4ehImBzBkW7hRH2xIvzkNIZHzRtM +aS| +Xg`Bli(S /&@$+yb$o9@Ծ U $:QM"S GW?52Ӌ4 +UwK՝69-(ǩsFX6Bi5{I%ًdw3B igA]1Ii9v>[F+]qOnI2"+xnWbF \ No newline at end of file diff --git a/secrets/secrets.nix b/secrets/secrets.nix index dadb0cd..58d7a23 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -60,6 +60,7 @@ in { "ehex.ovpn.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ stroopwafelKeys ++ baseKeys; "ehex-vpn.creds.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ stroopwafelKeys ++ baseKeys; + "de.ehex.infinity-key.age".publicKeys = stroopwafelKeys ++ baseKeys; "id_ed25519_sk-485.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ stroopwafelKeys ++ baseKeys; "id_ed25519_sk-464.age".publicKeys = biolimoKeys ++ chocolatebarKeys ++ stroopwafelKeys ++ baseKeys; diff --git a/users/b12f/ehex.nix b/users/b12f/ehex.nix index 124d1d1..2fb2ebc 100644 --- a/users/b12f/ehex.nix +++ b/users/b12f/ehex.nix @@ -21,6 +21,11 @@ in { mode = "400"; }; + age.secrets."de.ehex.infinity-key" = { + file = "${flake.self}/secrets/de.ehex.infinity-key.age"; + mode = "400"; + }; + services.openvpn.servers = { ehexVPN = { autoStart = false; @@ -30,4 +35,18 @@ in { ''; }; }; + + home-manager.users."${psCfg.user.name}" = { + home.packages = with pkgs; [ + cloudflare-warp + ]; + + xdg.configFile."neomutt/mailcap".source = ./.config/neomutt/mailcap; + }; + + environment.persistence."/persist" = { + directories = [ + "/var/lib/cloudflare-warp" + ]; + }; }