feat: add wireguard configuration and image processing tools

This commit is contained in:
2026-05-21 23:12:26 +02:00
parent 2fe858c2b7
commit c3ecd84d9a
3 changed files with 34 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
{ config, pkgs, inputs, ... }: {
imports = [
inputs.home-manager.darwinModules.home-manager
./services/wg-quick
];
environment.systemPackages = [
+28
View File
@@ -0,0 +1,28 @@
# hosts/macbook/services/wireguard/default.nix
{ config, pkgs, ... }: {
sops.secrets."wireguard/mac_private_key" = {
owner = "marc"; # ton username macOS
mode = "0400";
};
networking.wg-quick.interfaces.wg1 = {
address = [ "10.100.0.2/24" ];
dns = [ "1.1.1.1" ];
privateKeyFile = config.sops.secrets."wireguard/mac_private_key".path;
peers = [
{
publicKey = "dsOBj2AfqF7YQ1JTGfYjlFse5sFZzwudOBiEMDLAzhU="; # wg show wg1 public-key sur le VPS
endpoint = "104.129.12.158:51821";
allowedIPs = [ "0.0.0.0/0" "::/0" ];
persistentKeepalive = 25;
}
];
};
environment.systemPackages = with pkgs; [
wireguard-tools
wireguard-go # backend userspace requis sur macOS
];
}
+5
View File
@@ -66,6 +66,11 @@
fastfetch
htop
nodejs
upscayl
upscayl-ncnn
realesrgan-ncnn-vulkan
imagemagick
];
# nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [