Skip to content

Commit

Permalink
fix(nixos): Connect home server via tailscale
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jul 4, 2024
1 parent 1ccf0be commit 96b6d93
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion hosts/pc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
powerManagement.cpuFreqGovernor = "performance";
hardware = {
# use proprietary nvidia drivers
opengl.enable = true;
graphics.enable = true;
nvidia = {
# workaround for Steam new UI bug, change this back to `config.boot.kernelPackages.nvidiaPackages.stable` in the future.
# see: https://wiki.archlinux.org/title/Steam/Troubleshooting#Steam_window_does_not_show_on_Nvidia_GPUs_after_the_June_14,_2023_update
Expand Down
17 changes: 4 additions & 13 deletions hosts/server/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ config, ... }: {
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
Expand All @@ -21,7 +21,6 @@
./hardware-configuration.nix
./secrets.nix
./ollama.nix
./nginx.nix
./content.nix
./nas.nix
./containers.nix
Expand All @@ -36,7 +35,9 @@
efi.efiSysMountPoint = "/boot";
};
};
services = { # Did you read the comment?
services = {
tailscale.enable = true;
tailscale.authKeyFile = config.age.secrets.tailscale.path;
fail2ban.enable = true;
openssh = {
enable = true;
Expand All @@ -56,15 +57,5 @@
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};

hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime # OpenCL filter support (hardware tonemapping and subtitle burn-in)
];
};
programs.fish.enable = true;
}
1 change: 1 addition & 0 deletions hosts/server/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
secrets = {
mullvad_wireguard.file = ../../mullvad_wireguard.age;
homepage.file = ../../homepage.age;
tailscale.file = ../../tailscale.age;
};
};
}
1 change: 1 addition & 0 deletions secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ let
in {
"mullvad_wireguard.age".publicKeys = users ++ systems;
"homepage.age".publicKeys = users ++ systems;
"tailscale.age".publicKeys = users ++ systems;
}
7 changes: 7 additions & 0 deletions tailscale.age
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 FeK1Dw U61KUkmc8LZ3H5jIyn0WW4b7XM+uZqP1Aj3CMvNbWwQ
iyQnbUDVk7E0apGa80qMRGT6mCAl8LGzGjyrM7I6768
-> ssh-ed25519 kfVkkw YWc4Us4soHllJY3d8uoA6VrKOZ34ihJV4rtBIvLKXy8
bn8SafQr7h02BJFdMblc7Kxczcud6LyQ10f/looBVtA
--- 1HRqwZlF3VLZDAbdr1YUmCAdu2xh8+l7yS+nrP52DY0
!��94fz\Z�o XG���X|ědk�J�����ə��Z�hS]2����}K�K�'�m��'���0g$�<�g�]}P��Nc���dd���"�
Expand Down

0 comments on commit 96b6d93

Please sign in to comment.