fix wireguard private key file path

This commit is contained in:
Douze Bé 2024-12-19 12:25:04 +00:00
parent d2aca2db3f
commit bfdd1963ea

View file

@ -1,7 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
@ -37,7 +33,7 @@
wg0 = {
address = [ "192.168.12.2/32" "2a01:4f9:1a:9a05::2/128" ];
dns = [ "80.67.169.12" "80.67.169.40" "2001:910:800::12" "2001:910:800::40" ];
privateKeyFile = "/etc/wireguard/private.key";
privateKeyFile = "/var/src/secrets/wg-private.key";
peers = [
{
@ -89,7 +85,7 @@
# Configure console keymap
console.keyMap = "fr";
# Define a user account. Don't forget to set a password with passwd.
# Define a user account. Don't forget to set a password with 'passwd'.
users.users.douzeb = {
isNormalUser = true;
description = "douze baie";
@ -191,7 +187,7 @@
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).