tailscale exit node

This commit is contained in:
Tao Tien 2024-01-07 13:32:33 -08:00
parent d3d15d3ec9
commit 827885b5b2
3 changed files with 19 additions and 11 deletions

18
flake.lock generated
View file

@ -41,11 +41,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1702453208, "lastModified": 1703545041,
"narHash": "sha256-0wRi9SposfE2wHqjuKt8WO2izKB/ASDOV91URunIqgo=", "narHash": "sha256-nvQA+k1rSszrf4kA4eK2i/SGbzoXyoKHzzyzq/Jca1w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "7763c6fd1f299cb9361ff2abf755ed9619ef01d6", "rev": "a15b6e525f5737a47b4ce28445c836996fb2ea8c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -105,11 +105,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1702312524, "lastModified": 1703255338,
"narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=", "narHash": "sha256-Z6wfYJQKmDN9xciTwU3cOiOk+NElxdZwy/FiHctCzjU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a9bf124c46ef298113270b1f84a164865987a91c", "rev": "6df37dc6a77654682fe9f071c62b4242b5342e04",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -120,11 +120,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1702221085, "lastModified": 1703351344,
"narHash": "sha256-Br3GCSkkvkmw46cT6wCz6ro2H1WgDMWbKE0qctbdtL0=", "narHash": "sha256-9FEelzftkE9UaJ5nqxidaJJPEhe9TPhbypLHmc2Mysc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c2786e7084cbad90b4f9472d5b5e35ecb57958af", "rev": "7790e078f8979a9fcd543f9a47427eeaba38f268",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,7 +8,7 @@
[ [
# egl-wayland # egl-wayland
# mesa # mesa
# nvidia-vaapi-driver nvidia-vaapi-driver
gwe gwe
liquidctl liquidctl
openrgb openrgb
@ -18,6 +18,9 @@
environment.sessionVariables = { environment.sessionVariables = {
# wayland chromium workaround # wayland chromium workaround
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
# firefox nvidia-vaapi-driver
MOZ_DISABLE_RDD_SANDBOX = "1";
LIBVA_DRIVER_NAME = "nvidia";
}; };
fileSystems."/home" = { fileSystems."/home" = {
@ -81,8 +84,11 @@
boot.kernelPackages = pkgs.unstable.linuxPackages_latest; boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "i2c-dev" "kvm-amd" ]; boot.kernelModules = [ "i2c-dev" "kvm-amd" ];
boot.kernelParams = [ "nvidia-drm.modeset=1" ];
# boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ]; # boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
# boot.blacklistedKernelModules = with config.boot.kernelPackages; [ k10temp ]; # boot.blacklistedKernelModules = with config.boot.kernelPackages; [ k10temp ];
boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;

View file

@ -65,7 +65,9 @@
]; ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";
systemd.sleep.extraConfig = "HibernateDelaySec=60m"; systemd.sleep.extraConfig = "HibernateDelaySec=180m";
# boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
# boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
services.pipewire.wireplumber.enable = true; services.pipewire.wireplumber.enable = true;
environment.etc = { environment.etc = {