Add linodeeu configuration and tailscale update
This commit is contained in:
@@ -72,6 +72,7 @@
|
|||||||
jude = unstable { name = "jude"; };
|
jude = unstable { name = "jude"; };
|
||||||
"icdm-root" = unstable { name = "icdm-root"; };
|
"icdm-root" = unstable { name = "icdm-root"; };
|
||||||
"linode" = machine { name = "linode"; };
|
"linode" = machine { name = "linode"; };
|
||||||
|
"linodeeu" = machine { name = "linodeeu"; };
|
||||||
"lappy" = machine { name = "lappy"; };
|
"lappy" = machine { name = "lappy"; };
|
||||||
"iso" = machine { name = "iso"; };
|
"iso" = machine { name = "iso"; };
|
||||||
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
||||||
|
|||||||
@@ -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";
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -10,5 +10,9 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.ip_forward" = "1";
|
||||||
|
"net.ipv6.conf.all.forwarding" = "1";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user