From 99336d30d6d26dd45758bf32971fe997670b1e55 Mon Sep 17 00:00:00 2001 From: Ota Mares <1375307+omares@users.noreply.github.com> Date: Wed, 15 Jan 2025 00:32:01 +0100 Subject: [PATCH] Format code using nixfmt and adapt platforms Format code using nixfmt --- nixos/modules/services/video/scrypted.nix | 8 ++------ pkgs/by-name/sc/scrypted/package.nix | 8 +++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/nixos/modules/services/video/scrypted.nix b/nixos/modules/services/video/scrypted.nix index 07def922f3825..d4fd9efb72fa4 100644 --- a/nixos/modules/services/video/scrypted.nix +++ b/nixos/modules/services/video/scrypted.nix @@ -138,9 +138,7 @@ in ProtectSystem = "strict"; ProtectHome = true; WorkingDirectory = cfg.installPath; - ReadWritePaths = [ - cfg.installPath - ]; + ReadWritePaths = [ cfg.installPath ]; PrivateDevices = false; PrivateTmp = true; NoNewPrivileges = true; @@ -168,9 +166,7 @@ in }; }; - users.groups = lib.mkIf (cfg.group == "scrypted") { - ${cfg.group} = { }; - }; + users.groups = lib.mkIf (cfg.group == "scrypted") { ${cfg.group} = { }; }; networking.firewall = lib.mkIf cfg.openFirewall { allowedTCPPorts = [ diff --git a/pkgs/by-name/sc/scrypted/package.nix b/pkgs/by-name/sc/scrypted/package.nix index 801e5a2e78951..6310295c4e696 100644 --- a/pkgs/by-name/sc/scrypted/package.nix +++ b/pkgs/by-name/sc/scrypted/package.nix @@ -4,7 +4,7 @@ fetchFromGitHub, nodejs_20, callPackage, - nix-update-script + nix-update-script, }: let npmHooks = callPackage ./hooks.nix { }; @@ -28,9 +28,7 @@ in sourceRoot = "${src.name}/server"; - nativeBuildInputs = [ - nodejs - ]; + nativeBuildInputs = [ nodejs ]; makeWrapperArgs = [ "--set NODE_ENV production" ]; @@ -49,7 +47,7 @@ in mainProgram = "scrypted-serve"; homepage = "https://github.com/koush/scrypted"; license = lib.licenses.mit; - platforms = lib.platforms.linux; + platforms = lib.platforms.all; # maintainers = lib.maintainers [ ]; }; }