From 6db9eaad8e78f882ae44a28edcc4d11d2ffd5e28 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 Mar 2023 21:43:19 +0100 Subject: Re-format with nixpkgs-fmt --- system/settings/services/airplay-sink.nix | 7 +++---- system/settings/services/samba.nix | 17 +++++++++-------- system/settings/services/syncthing.nix | 7 +++---- system/settings/services/virtualisation.nix | 7 +++---- system/settings/services/xserver.nix | 15 +++++++-------- system/settings/services/zeroconf.nix | 13 ++++++------- 6 files changed, 31 insertions(+), 35 deletions(-) (limited to 'system/settings/services') diff --git a/system/settings/services/airplay-sink.nix b/system/settings/services/airplay-sink.nix index 4621706e..f03f7641 100644 --- a/system/settings/services/airplay-sink.nix +++ b/system/settings/services/airplay-sink.nix @@ -1,7 +1,6 @@ -{ - config, - pkgs, - ... +{ config +, pkgs +, ... }: { services.pipewire.systemWide = false; services.shairport-sync = { diff --git a/system/settings/services/samba.nix b/system/settings/services/samba.nix index 729a6756..ae6c6f5a 100644 --- a/system/settings/services/samba.nix +++ b/system/settings/services/samba.nix @@ -1,16 +1,17 @@ -{ - config, - pkgs, - ... -}: let +{ config +, pkgs +, ... +}: +let workgroup = "WORKGROUP"; -in { +in +{ services.samba-wsdd = { inherit workgroup; enable = true; }; - networking.firewall.allowedTCPPorts = [5357]; - networking.firewall.allowedUDPPorts = [3702]; + networking.firewall.allowedTCPPorts = [ 5357 ]; + networking.firewall.allowedUDPPorts = [ 3702 ]; services.samba = { enable = true; diff --git a/system/settings/services/syncthing.nix b/system/settings/services/syncthing.nix index b504bde3..3623b875 100644 --- a/system/settings/services/syncthing.nix +++ b/system/settings/services/syncthing.nix @@ -1,7 +1,6 @@ -{ - config, - pkgs, - ... +{ config +, pkgs +, ... }: { services.syncthing = { enable = true; diff --git a/system/settings/services/virtualisation.nix b/system/settings/services/virtualisation.nix index 8056387c..dbe041c7 100644 --- a/system/settings/services/virtualisation.nix +++ b/system/settings/services/virtualisation.nix @@ -1,7 +1,6 @@ -{ - config, - pkgs, - ... +{ config +, pkgs +, ... }: { virtualisation.libvirtd = { enable = true; diff --git a/system/settings/services/xserver.nix b/system/settings/services/xserver.nix index 7e2a7c49..7ce0dbb2 100644 --- a/system/settings/services/xserver.nix +++ b/system/settings/services/xserver.nix @@ -1,8 +1,7 @@ -{ - config, - lib, - pkgs, - ... +{ config +, lib +, pkgs +, ... }: with lib; { services.xserver = { @@ -41,9 +40,9 @@ with lib; { }; useEmbeddedBitmaps = !config.fonts.fontconfig.antialias; defaultFonts = { - monospace = ["IBM Plex Mono"]; - sansSerif = ["Cantarell"]; - serif = ["Times New Roman"]; + monospace = [ "IBM Plex Mono" ]; + sansSerif = [ "Cantarell" ]; + serif = [ "Times New Roman" ]; }; localConf = '' diff --git a/system/settings/services/zeroconf.nix b/system/settings/services/zeroconf.nix index 6859cfd5..1412b1f0 100644 --- a/system/settings/services/zeroconf.nix +++ b/system/settings/services/zeroconf.nix @@ -1,8 +1,7 @@ -{ - config, - pkgs, - lib, - ... +{ config +, pkgs +, lib +, ... }: { services.avahi = { enable = true; @@ -16,10 +15,10 @@ workstation = true; }; }; - systemd.services.avahi-daemon.wantedBy = lib.mkForce []; + systemd.services.avahi-daemon.wantedBy = lib.mkForce [ ]; systemd.timers.avahi-daemon = { description = "Delayed startup of Avahi"; - wantedBy = ["timers.target"]; + wantedBy = [ "timers.target" ]; timerConfig = { OnActiveSec = "1 min"; }; -- cgit 1.4.1