From 2121751329dae3475a97b3f1f0d193e2b803f5e7 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 21 Jan 2026 09:39:46 +0000 Subject: [PATCH] Update go2rtc.nix --- services/go2rtc.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/services/go2rtc.nix b/services/go2rtc.nix index 810b5bd..7c947bd 100644 --- a/services/go2rtc.nix +++ b/services/go2rtc.nix @@ -1,18 +1,19 @@ { config, pkgs, lib, ... }: + +let + sops-nix = builtins.fetchTarball { + url = "https://github.com/Mic92/sops-nix/archive/master.tar.gz"; + }; +in + { config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") { - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - sops-nix.url = "github:Mic92/sops-nix"; - }; + imports = [ + "${sops-nix}/modules/sops" + # your other imports + ]; + + - outputs = { self, nixpkgs, sops-nix }: { - nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem { - modules = [ - sops-nix.nixosModules.sops - ./configuration.nix - ]; - }; - }; }; }