Skip to content

Commit

Permalink
Remove some unused config. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah authored May 12, 2024
1 parent 9ce7e62 commit f85d010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
15 changes: 3 additions & 12 deletions hosts/home/boot.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{config, ...}: {
{
boot = {
plymouth.enable = true;
kernelModules = ["kvm-intel"];
kernelParams = [
"ip=192.168.0.2::192.168.0.1:255.255.255.0:home::none"
"quiet"
];
kernelParams = ["quiet"];
blacklistedKernelModules = ["radeon"];
loader = {
grub = {
Expand All @@ -28,7 +25,7 @@
};
};
initrd = {
kernelModules = ["amdgpu" "r8169"];
kernelModules = ["amdgpu"];
availableKernelModules = [
"ahci"
"nvme"
Expand All @@ -47,12 +44,6 @@
cryptb = luksDev 1; # 2T
};
services.lvm.enable = true;

# Start SSH during boot, to allow remote unlocking of LUKS volumes.
network.ssh = {
enable = true;
authorizedKeys = config.users.users.ao.openssh.authorizedKeys.keys;
};
};
};
}
19 changes: 1 addition & 18 deletions hosts/home/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,14 @@ in {
nftables.enable = true;

# FQDN used to override public addresses. i.e. home.dorn.haus should
# resolve to a apinholed IPv6 address, but internally it should still point
# resolve to a pinholed IPv6 address, but internally it should still point
# to ::1.
extraHosts = ''
::1 ${host.fqdn}
127.0.0.2 ${host.fqdn}
192.168.0.1 wifi
192.168.1.1 modem
192.168.4.1 jh jh.${host.domain}
'';

wireguard.interfaces = {
dh8 = {
ips = ["fd10:4::2/64"]; # jh: fd10:4::1
privateKeyFile = "/etc/wireguard/dh8.home.key";
peers = [
{
publicKey = "dQNahUFr2rm4uRqPIE4ZwwGt9WXcoUtkVOmApM8AYU8=";
allowedIPs = ["::/0"]; # IPv6: all traffic
endpoint = "192.168.4.1:45340";
persistentKeepalive = 24;
}
];
};
};
};
}
2 changes: 1 addition & 1 deletion hosts/jh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Currently a Raspberry Pi model B+ running Alpine linux. Used to access the
[DH8 cluster][1] from outside the firewall, and from IPv4-only networks.

[1]: https://github.com/attilaolah/ops
[1]: https://gitlab.com/dornhaus/ops

0 comments on commit f85d010

Please sign in to comment.