summary refs log tree commit diff stats
path: root/system/settings/services
diff options
context:
space:
mode:
authorAlan Pearce2022-10-16 23:49:18 +0200
committerAlan Pearce2022-10-16 23:56:07 +0200
commit05dd85210e465caa44ef7254f2781b2d12ba2882 (patch)
tree85ccc720e339dd5ca8d7eb3ce6a3488c78675235 /system/settings/services
parent472dbbdbb246cf3d8ce3a5c3c6cefaa07b7589df (diff)
downloadnixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.tar.lz
nixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.tar.zst
nixfiles-05dd85210e465caa44ef7254f2781b2d12ba2882.zip
Reformat files with alejandra
Diffstat (limited to 'system/settings/services')
-rw-r--r--system/settings/services/airplay-sink.nix6
-rw-r--r--system/settings/services/samba.nix16
-rw-r--r--system/settings/services/syncthing.nix9
-rw-r--r--system/settings/services/virtualisation.nix6
-rw-r--r--system/settings/services/xserver.nix58
-rw-r--r--system/settings/services/zeroconf.nix12
6 files changed, 62 insertions, 45 deletions
diff --git a/system/settings/services/airplay-sink.nix b/system/settings/services/airplay-sink.nix
index 617adaa2..4621706e 100644
--- a/system/settings/services/airplay-sink.nix
+++ b/system/settings/services/airplay-sink.nix
@@ -1,6 +1,8 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   services.pipewire.systemWide = false;
   services.shairport-sync = {
     enable = true;
diff --git a/system/settings/services/samba.nix b/system/settings/services/samba.nix
index 63283e88..729a6756 100644
--- a/system/settings/services/samba.nix
+++ b/system/settings/services/samba.nix
@@ -1,16 +1,16 @@
-{ config, pkgs, ... }:
-
-let
-  workgroup = "WORKGROUP";
-
-in
 {
+  config,
+  pkgs,
+  ...
+}: let
+  workgroup = "WORKGROUP";
+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 c3aa8086..b504bde3 100644
--- a/system/settings/services/syncthing.nix
+++ b/system/settings/services/syncthing.nix
@@ -1,6 +1,9 @@
-{ config, pkgs, ... }:
-
-{ services.syncthing = {
+{
+  config,
+  pkgs,
+  ...
+}: {
+  services.syncthing = {
     enable = true;
     user = "alan";
     group = "users";
diff --git a/system/settings/services/virtualisation.nix b/system/settings/services/virtualisation.nix
index 200ffa62..8056387c 100644
--- a/system/settings/services/virtualisation.nix
+++ b/system/settings/services/virtualisation.nix
@@ -1,6 +1,8 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   virtualisation.libvirtd = {
     enable = true;
     onBoot = "ignore";
diff --git a/system/settings/services/xserver.nix b/system/settings/services/xserver.nix
index c78693c1..7e2a7c49 100644
--- a/system/settings/services/xserver.nix
+++ b/system/settings/services/xserver.nix
@@ -1,7 +1,11 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-{ services.xserver = {
+{
+  config,
+  lib,
+  pkgs,
+  ...
+}:
+with lib; {
+  services.xserver = {
     enable = true;
     enableCtrlAltBackspace = true;
     exportConfiguration = true;
@@ -37,9 +41,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 = ''
@@ -57,28 +61,30 @@ with lib;
         </fontconfig>
       '';
     };
-    fonts = with pkgs; [
-      gohufont
-      dina-font
-      terminus_font
+    fonts = with pkgs;
+      [
+        gohufont
+        dina-font
+        terminus_font
 
-      corefonts
+        corefonts
 
-      emacs-all-the-icons-fonts
-      font-awesome_5
-      xorg.fontmiscmisc
-      xorg.fontcursormisc
-    ] ++ lib.optionals config.fonts.fontconfig.antialias [
-      cantarell-fonts
+        emacs-all-the-icons-fonts
+        font-awesome_5
+        xorg.fontmiscmisc
+        xorg.fontcursormisc
+      ]
+      ++ lib.optionals config.fonts.fontconfig.antialias [
+        cantarell-fonts
 
-      fira
-      fira-code
-      fira-mono
-      ibm-plex
+        fira
+        fira-code
+        fira-mono
+        ibm-plex
 
-      source-code-pro
-      source-sans-pro
-      source-serif-pro
-    ];
+        source-code-pro
+        source-sans-pro
+        source-serif-pro
+      ];
   };
 }
diff --git a/system/settings/services/zeroconf.nix b/system/settings/services/zeroconf.nix
index 98bde1da..6859cfd5 100644
--- a/system/settings/services/zeroconf.nix
+++ b/system/settings/services/zeroconf.nix
@@ -1,6 +1,10 @@
-{ config, pkgs, lib, ... }:
-
-{ services.avahi = {
+{
+  config,
+  pkgs,
+  lib,
+  ...
+}: {
+  services.avahi = {
     enable = true;
     nssmdns = true;
     ipv6 = true;
@@ -15,7 +19,7 @@
   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";
     };