diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-09-12 20:19:48 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-09-12 20:19:48 +0000 |
| commit | 5d1f4f8d18effc7d32b6c4b6e6f05189f5e2e836 (patch) | |
| tree | c746d8cb023c303235a31838425d68fc0a743e57 /nix | |
| parent | e8205ac38096ff6f32599f414caaf4d184f350dc (diff) | |
added new vm for photos, shrunk nc
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" |
