From 3ddb78788be996901d9882c4b0e75d1ee6b6efa7 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 21 Oct 2024 23:24:47 +0200 Subject: [PATCH] challenger: Re-enable nvidia, various fixes. NFS still broken :( --- flake.lock | 8 ++++---- hosts/challenger/configuration.nix | 8 ++++---- hosts/challenger/exports.nix | 19 ++++++++++++++----- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index e452c4a..35f820f 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "extra-config": { "locked": { - "lastModified": 1720193877, - "narHash": "sha256-f+ZtFQTbbmieTYLANn0AOz439/sIH+HumOAhItdYYig=", + "lastModified": 1729545170, + "narHash": "sha256-IrjXBAGiJKyIHxjVHPke1RbkqZ5yWTNHLfo8//LP9bM=", "ref": "refs/heads/main", - "rev": "f9817deef3d4e56a31a89ee93419a9acd278e922", - "revCount": 9, + "rev": "7a64446cecca25a8f7df089ea04557727e5dc041", + "revCount": 10, "type": "git", "url": "file:///home/felixalb/nix-extra-config" }, diff --git a/hosts/challenger/configuration.nix b/hosts/challenger/configuration.nix index 6f89636..44aae2e 100644 --- a/hosts/challenger/configuration.nix +++ b/hosts/challenger/configuration.nix @@ -50,12 +50,12 @@ "nvidia-settings" ]; - # hardware.nvidia = { - # modesetting.enable = true; - # }; + hardware.nvidia = { + modesetting.enable = true; + }; hardware.opengl.enable = true; - # services.xserver.videoDrivers = ["nvidia"]; + services.xserver.videoDrivers = ["nvidia"]; system.stateVersion = "24.05"; } diff --git a/hosts/challenger/exports.nix b/hosts/challenger/exports.nix index e4fbd7c..d2d6f6a 100644 --- a/hosts/challenger/exports.nix +++ b/hosts/challenger/exports.nix @@ -1,12 +1,21 @@ { config, pkgs, lib, ... }: { - # Enable nfs4 only - services.nfs.server = { - enable = true; - exports = '' - ''; # TODO + fileSystems = { + "/export/riker-backup" = { + device = "/tank/backup/riker"; + options = [ "bind" ]; + }; }; + # Enable nfs4 only + # services.nfs.server = { + # enable = true; + # exports = '' + # /export 192.168.10.67(rw,fsid=0,no_subtree_check) + # /export/riker-backup 192.168.10.67(rw,nohide,no_subtree_check,no_root_squash) + # ''; + # }; + networking.firewall.allowedTCPPorts = [ 111 2049 20048 ]; networking.firewall.allowedUDPPorts = [ 111 20048]; }