7 current 2025-10-05 19:40:33 25.05.20251001.5b5be50 6.12.49 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# define new devices in outputs
|
||||||
# generation: 6 current 2025-10-05 18:36:02 25.05.20251001.5b5be50 6.12.49 *
|
# generation: 7 current 2025-10-05 19:40:33 25.05.20251001.5b5be50 6.12.49 *
|
||||||
{
|
{
|
||||||
description = "blakes nix config";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
syncthing.enable = true;
|
syncthing.enable = true;
|
||||||
syncthing.mode = "server";
|
syncthing.mode = "server";
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
nvidia.enable = false;
|
nvidia.enable = true;
|
||||||
};
|
};
|
||||||
homelab = {
|
homelab = {
|
||||||
zfs.enable = true;
|
zfs.enable = true;
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
# enable nvidia proprietary driver
|
# enable nvidia proprietary driver
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true; # required
|
modesetting.enable = true; # required
|
||||||
@@ -18,11 +22,6 @@ in
|
|||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
};
|
};
|
||||||
|
|
||||||
# install nvidia-smi
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
nvidia-smi
|
|
||||||
];
|
|
||||||
|
|
||||||
# enable docker gpu passthrough
|
# enable docker gpu passthrough
|
||||||
virtualisation.docker.enableNvidia = true;
|
virtualisation.docker.enableNvidia = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "server";
|
||||||
authKeyFile = authkey_file;
|
authKeyFile = authkey_file;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user