aboutsummaryrefslogtreecommitdiff
path: root/nix/per-host/photos/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/per-host/photos/configuration.nix')
-rw-r--r--nix/per-host/photos/configuration.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nix/per-host/photos/configuration.nix b/nix/per-host/photos/configuration.nix
new file mode 100644
index 0000000..15f1953
--- /dev/null
+++ b/nix/per-host/photos/configuration.nix
@@ -0,0 +1,40 @@
+{ config, pkgs, modulesPath, lib, system, ... }:
+
+{
+ config = {
+ sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
+ sops.defaultSopsFile = ../../secrets/photos.yaml;
+
+ networking.hostName = "photos";
+ networking.firewall.allowedTCPPorts = [ 80 443 ];
+
+ hardware.graphics = {
+ enable = true;
+ };
+
+ hardware.nvidia = {
+ modesetting.enable = true;
+ nvidiaPersistenced = true;
+ powerManagement.enable = false;
+ powerManagement.finegrained = false;
+ open = false;
+ nvidiaSettings = true;
+ package = config.boot.kernelPackages.nvidiaPackages.legacy_580;
+ };
+
+ nixpkgs.config.allowUnfree = true;
+
+ services.xserver.videoDrivers = [ "nvidia" ];
+
+ fileSystems = {
+ "/mnt/data/kumar/legacy-media" = {
+ device = "nas.bacala:/mnt/tank/customers/kumar/legacy-media";
+ fsType = "nfs";
+ };
+ "/mnt/data/kumar/camera" = {
+ device = "nas.bacala:/mnt/tank/customers/kumar/phone/camera";
+ fsType = "nfs";
+ };
+ };
+ };
+}