Compare commits
No commits in common. "1eba3e269d46cb5e78f19e986d955191b84f0ea7" and "d7001c0e37affc4910856a805c3a44cdb87c7989" have entirely different histories.
1eba3e269d
...
d7001c0e37
4 changed files with 26 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./networking.nix
|
||||||
./overlays.nix
|
./overlays.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
24
modules/nixos/common/networking.nix
Normal file
24
modules/nixos/common/networking.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.servers.nixosModules.pki
|
||||||
|
];
|
||||||
|
|
||||||
|
services.resolved.enable = true;
|
||||||
|
|
||||||
|
networking.networkmanager.dns = "systemd-resolved";
|
||||||
|
networking.resolvconf.enable = false;
|
||||||
|
networking.dhcpcd.enable = false;
|
||||||
|
networking.search = [
|
||||||
|
"i.sid.ovh"
|
||||||
|
"sid.ovh"
|
||||||
|
];
|
||||||
|
networking.nameservers = [
|
||||||
|
"100.64.0.6"
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.tailscale.useRoutingFeatures = "client";
|
||||||
|
}
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
loginServer = "https://hs.sid.ovh";
|
loginServer = "https://hs.sid.ovh";
|
||||||
authKeyFile = config.sops.secrets."tailscale/personal-key".path;
|
authKeyFile = config.sops.secrets."tailscale/personal-key".path;
|
||||||
enableSSH = true;
|
enableSSH = true;
|
||||||
acceptDNS = true;
|
acceptDNS = false; # use coredns
|
||||||
};
|
};
|
||||||
work = {
|
work = {
|
||||||
loginServer = "https://headscale.cryodev.xyz";
|
loginServer = "https://headscale.cryodev.xyz";
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ in
|
||||||
magic-wormhole
|
magic-wormhole
|
||||||
naabu
|
naabu
|
||||||
ocrmypdf
|
ocrmypdf
|
||||||
qrencode
|
|
||||||
rpi-imager
|
rpi-imager
|
||||||
rustfmt
|
rustfmt
|
||||||
showmethekey
|
showmethekey
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue