From 05dd85210e465caa44ef7254f2781b2d12ba2882 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 16 Oct 2022 23:49:18 +0200 Subject: Reformat files with alejandra --- system/settings/services/airplay-sink.nix | 6 ++- system/settings/services/samba.nix | 16 ++++---- system/settings/services/syncthing.nix | 9 +++-- system/settings/services/virtualisation.nix | 6 ++- system/settings/services/xserver.nix | 58 ++++++++++++++++------------- system/settings/services/zeroconf.nix | 12 ++++-- 6 files changed, 62 insertions(+), 45 deletions(-) (limited to 'system/settings/services') 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; ''; }; - 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"; }; -- cgit 1.4.1