Macbook updates for agenix
This commit is contained in:
parent
648bf43f76
commit
195a5e1540
3 changed files with 14 additions and 12 deletions
|
|
@ -1,12 +1,18 @@
|
|||
{ nix-darwin, home-manager, agenix, self, ... }:
|
||||
{
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
agenix,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
agenix.darwinModules.default
|
||||
{ system.primaryUser = "maxiemgeldhof"; }
|
||||
(import ../../modules/usermodules/darwinsettings.nix self)
|
||||
home-manager.darwinModules.home-manager
|
||||
import ./users.nix
|
||||
./users.nix
|
||||
./wireguard.nix
|
||||
agenix.darwinModules.default
|
||||
];
|
||||
|
||||
specialArgs = {
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@ in
|
|||
home-manager.useUserPackages = true;
|
||||
home-manager.users.maxiemgeldhof = userconfig;
|
||||
users.users.maxiemgeldhof.home = "/Users/maxiemgeldhof";
|
||||
age.identityPaths = [ "/Users/maxiemgeldhof/.ssh/id_ed25519" ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.wg-private.file = "../../keys/wg-macbook";
|
||||
services.wg-quick.interfaces.wg0 = {
|
||||
# Add a name for your interface here, e.g., wg0
|
||||
enable = true;
|
||||
# Path to your WireGuard config file
|
||||
# e.g., /etc/wireguard/wg0.conf
|
||||
|
||||
age.secrets.wg-private.file = ../../keys/wg-macbook;
|
||||
networking.wg-quick.interfaces.wg-selene = {
|
||||
privateKeyFile = config.age.secrets.wg-private.path;
|
||||
|
||||
# The internal IP address assigned to this client by the server.
|
||||
|
|
@ -23,7 +18,7 @@
|
|||
peers = [
|
||||
{
|
||||
# Public key of the SERVER.
|
||||
publicKey = builtins.readFile ../../../keys/wg-selene.pub;
|
||||
publicKey = builtins.readFile ../../keys/wg-selene.pub;
|
||||
|
||||
# The server's public IP address and listening port.
|
||||
endpoint = "37.27.207.39:51820";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue