Add linodeeu configuration and tailscale update

This commit is contained in:
Greg Hellings
2023-04-18 05:17:33 +00:00
parent 3f6184bac9
commit b23b138ccc
4 changed files with 43 additions and 0 deletions
+1
View File
@@ -72,6 +72,7 @@
jude = unstable { name = "jude"; };
"icdm-root" = unstable { name = "icdm-root"; };
"linode" = machine { name = "linode"; };
"linodeeu" = machine { name = "linodeeu"; };
"lappy" = machine { name = "lappy"; };
"iso" = machine { name = "iso"; };
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
+12
View File
@@ -0,0 +1,12 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
];
greg.home = false;
greg.linode.enable = true;
greg.tailscale.enable = true;
networking.hostName = "linodeeu";
networking.domain = "thehellings.com";
}
+26
View File
@@ -0,0 +1,26 @@
# Do not modify this file! It was generated by "nixos-generate-config"
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/sda";
fsType = "ext4";
};
swapDevices = [
{ device = "/dev/sdb"; }
];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+4
View File
@@ -10,5 +10,9 @@ in {
config = lib.mkIf cfg.enable {
services.tailscale.enable = true;
networking.firewall.checkReversePath = "loose";
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = "1";
"net.ipv6.conf.all.forwarding" = "1";
};
};
}