Skip to content

Commit

Permalink
Format code using nixfmt and adapt platforms
Browse files Browse the repository at this point in the history
Format code using nixfmt
  • Loading branch information
omares committed Jan 15, 2025
1 parent e2194ce commit 99336d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 2 additions & 6 deletions nixos/modules/services/video/scrypted.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ in
ProtectSystem = "strict";
ProtectHome = true;
WorkingDirectory = cfg.installPath;
ReadWritePaths = [
cfg.installPath
];
ReadWritePaths = [ cfg.installPath ];
PrivateDevices = false;
PrivateTmp = true;
NoNewPrivileges = true;
Expand Down Expand Up @@ -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 = [
Expand Down
8 changes: 3 additions & 5 deletions pkgs/by-name/sc/scrypted/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fetchFromGitHub,
nodejs_20,
callPackage,
nix-update-script
nix-update-script,
}:
let
npmHooks = callPackage ./hooks.nix { };
Expand All @@ -28,9 +28,7 @@ in

sourceRoot = "${src.name}/server";

nativeBuildInputs = [
nodejs
];
nativeBuildInputs = [ nodejs ];

makeWrapperArgs = [ "--set NODE_ENV production" ];

Expand All @@ -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 [ ];
};
}

0 comments on commit 99336d3

Please sign in to comment.