Skip to content

(ˈsaʊron) NixOS-based PhotonVision Configuration

License

Notifications You must be signed in to change notification settings

Team-1280/sauron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotonVision on NixOS

The goal of this is to become a Nix Flake that runs PhotonVision service non-intrusively, and somewhat declaratively

How to install:

After launching in ANY NixOS operating system it is suggested to use Nix flakes.

  1. Move your NixOS Configurations to a "OS" directory -> mv /etc/nixos/configuration.nix ~/os/. && mv /etc/nixos/hardware-configuration.nix ~/os/.
  2. Configure PhotonVision in a flake.nix in the os main directory ->
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
    photonvision.url = "github:team-1280/sauron";
  };

  outputs = 
  { 
    nixpkgs,
    photonvision, 
    ... 
  }@inputs: 
  {
    nixosConfigurations.photonvision = nixpkgs.lib.nixosSystem {
      system = "aarch64-linux";
      modules = [
        ./configuration.nix
        (
        { pkgs, lib, ... }:
        {
            enviornment.systemPackages = [
              btop
              fastfetch
            ];
            imports = [
              photonvision.nixosModules.default 
            ];
            boot.loader.systemd-boot.enable = true;
            boot.loader.efi.canTouchEfiVariables = false;
            services.photonvision = {
                enable = true;
                version = "v2026.2.1";
                sha256 = "sha256-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
                disableNetworking = true;
            };
        })
      ];
    };
  };
  1. run sudo nixos-rebuild boot --flake .#photonvision

Asahi

The test machine is literally a Mac mini M1 16gb so other machines are for others. .

About

(ˈsaʊron) NixOS-based PhotonVision Configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages