diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/per-host/photos/configuration.nix | 40 | ||||
| -rw-r--r-- | nix/secrets/photos.yaml | 1 |
2 files changed, 41 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"; + }; + }; + }; +} diff --git a/nix/secrets/photos.yaml b/nix/secrets/photos.yaml new file mode 100644 index 0000000..97ad87b --- /dev/null +++ b/nix/secrets/photos.yaml @@ -0,0 +1 @@ +foo: "bar" |
