Skip to content

Commit

Permalink
Run treefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbot95 committed Nov 12, 2023
1 parent 85bd45d commit 0f8a844
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in {
}:
with lib; let
cfg = config.services.steam-servers;
anyServersEnabled =
anyServersEnabled =
any
(conf: conf.enable)
(builtins.attrValues cfg.servers);
Expand All @@ -32,11 +32,11 @@ in {
];

# Can't use tmpfiles because tmpfiles won't create directories with different owner than parent
systemd.services."make-steam-servers-dir" = let
systemd.services."make-steam-servers-dir" = let
services =
map
(name: "${name}.service")
(builtins.attrNames cfg.servers);
map
(name: "${name}.service")
(builtins.attrNames cfg.servers);
in {
wantedBy = services;
before = services;
Expand Down
6 changes: 5 additions & 1 deletion modules/servers/options.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{config, lib, ...}:
{
config,
lib,
...
}:
with lib; let
moduleLib = import ../lib.nix lib;
inherit (moduleLib) mkOpt configType;
Expand Down

0 comments on commit 0f8a844

Please sign in to comment.