Skip to content

Commit

Permalink
fix(dns): fix dns server for wg0
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Nov 6, 2024
1 parent 9945eb1 commit 23765fe
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
18 changes: 9 additions & 9 deletions home/firefox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,35 @@
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.pinned" = [
{
title = "Protonmail";
label = "Mail";
url = "https://mail.proton.me/u/1/inbox";
}
{
title = "Space";
url = "https://home.sfz-aalen.space/";
label = "Drive";
url = "https://drive.proton.me/u/1/";
}
{
title = "Space";
label = "Space";
url = "https://home.sfz-aalen.space/";
}
{
title = "Space";
label = "Space";
url = "https://home.sfz-aalen.space/";
}
{
title = "Space";
label = "Space";
url = "https://home.sfz-aalen.space/";
}
{
title = "Github";
label = "Github";
url = "https://github.com/";
}
{
title = "Nix search";
label = "Nix search";
url = "https://search.nixos.org/";
}
{
title = "Space";
label = "Space";
url = "https://home.sfz-aalen.space/";
}
];
Expand Down
2 changes: 1 addition & 1 deletion home/home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, pkgs-unstable, osConfig, ... }:
{ pkgs, osConfig, ... }:
let
user = "ruben";
idea = pkgs.writeShellScriptBin "idea" ''
Expand Down
5 changes: 1 addition & 4 deletions home/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ let
shellAliases = {
# shortcuts
ll = "ls -lisa";
s = "screenfetch";

# nixos update commands
update = "sudo nixos-rebuild switch --flake .#";
Expand Down Expand Up @@ -41,9 +40,7 @@ in

oh-my-zsh = {
enable = true;
plugins = [
"git"
];
plugins = [ "git" ];
theme = "robbyrussell";
};
};
Expand Down
1 change: 1 addition & 0 deletions hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
ruben.network.hostname = "deathstar";

console.keyMap = "de";
ruben.wireguard.enable = true;

system.stateVersion = "24.05";
}
Expand Down
2 changes: 1 addition & 1 deletion modules/wireguard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Determines the IP address and subnet of the client's end of the tunnel interface.
address = [ "192.168.178.201/24" ];
listenPort = 51820; # to match firewall allowedUDPPorts (without this wg uses random port numbers)
dns = [ "192.168.178.5" ];
dns = [ "192.168.178.1" ];

privateKeyFile = config.age.secrets.wireguardPrivateKey.path;

Expand Down

0 comments on commit 23765fe

Please sign in to comment.