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 - ]; - }; - }; }; }