From 88017f5a874478dd82f306a5df88c38a8d06fcb6 Mon Sep 17 00:00:00 2001 From: tdback Date: Thu, 16 Jan 2025 19:57:13 -0500 Subject: fix: format flake with `nixfmt-rfc-style` --- hosts/frigg/default.nix | 16 +++++++++++----- hosts/heimdall/default.nix | 11 +++++++---- hosts/odin/default.nix | 6 +++--- hosts/sparrow/default.nix | 5 ++++- hosts/thor/default.nix | 11 +++++++---- hosts/woodpecker/default.nix | 11 +++++++---- 6 files changed, 39 insertions(+), 21 deletions(-) (limited to 'hosts') diff --git a/hosts/frigg/default.nix b/hosts/frigg/default.nix index 4803133..cde7436 100644 --- a/hosts/frigg/default.nix +++ b/hosts/frigg/default.nix @@ -21,10 +21,10 @@ defaultGateway.address = "10.44.0.1"; interfaces.enp59s0 = { useDHCP = false; - ipv4.addresses = [{ + ipv4.addresses = lib.singleton { address = "10.44.4.103"; prefixLength = 16; - }]; + }; }; }; @@ -40,14 +40,20 @@ services.zquota = { enable = true; - quotas = { "tank/sftpgo" = 512; }; + quotas = { + "tank/sftpgo" = 512; + }; }; services.sftpgo.dataDir = "/tank/sftpgo"; programs.motd = { enable = true; - networkInterfaces = lib.lists.singleton "enp59s0"; - servicesToCheck = [ "caddy" "sftpgo" "zfs-zed" ]; + networkInterfaces = [ "enp59s0" ]; + servicesToCheck = [ + "caddy" + "sftpgo" + "zfs-zed" + ]; }; } diff --git a/hosts/heimdall/default.nix b/hosts/heimdall/default.nix index 7aed928..38b523a 100644 --- a/hosts/heimdall/default.nix +++ b/hosts/heimdall/default.nix @@ -20,10 +20,10 @@ defaultGateway.address = "10.44.0.1"; interfaces.eno1 = { useDHCP = false; - ipv4.addresses = [{ + ipv4.addresses = lib.singleton { address = "10.44.4.100"; prefixLength = 16; - }]; + }; }; }; @@ -36,7 +36,10 @@ programs.motd = { enable = true; - networkInterfaces = lib.lists.singleton "eno1"; - servicesToCheck = [ "searx" "unbound" ]; + networkInterfaces = [ "eno1" ]; + servicesToCheck = [ + "searx" + "unbound" + ]; }; } diff --git a/hosts/odin/default.nix b/hosts/odin/default.nix index 47515e8..52a2ace 100644 --- a/hosts/odin/default.nix +++ b/hosts/odin/default.nix @@ -21,10 +21,10 @@ defaultGateway.address = "10.44.0.1"; interfaces.eno1 = { useDHCP = false; - ipv4.addresses = [{ + ipv4.addresses = lib.singleton { address = "10.44.4.101"; prefixLength = 16; - }]; + }; }; }; @@ -48,7 +48,7 @@ programs.motd = { enable = true; - networkInterfaces = lib.lists.singleton "eno1"; + networkInterfaces = [ "eno1" ]; servicesToCheck = [ "caddy" "immich-machine-learning" diff --git a/hosts/sparrow/default.nix b/hosts/sparrow/default.nix index 824f5df..c7b175f 100644 --- a/hosts/sparrow/default.nix +++ b/hosts/sparrow/default.nix @@ -26,7 +26,10 @@ systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; - binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ]; + binfmt.emulatedSystems = [ + "aarch64-linux" + "riscv64-linux" + ]; }; # Since I don't always carry my split keyboard, remap CAPS to left CTRL. diff --git a/hosts/thor/default.nix b/hosts/thor/default.nix index 0ec2fa9..62071e8 100644 --- a/hosts/thor/default.nix +++ b/hosts/thor/default.nix @@ -20,10 +20,10 @@ defaultGateway.address = "10.44.0.1"; interfaces.eno1 = { useDHCP = false; - ipv4.addresses = [{ + ipv4.addresses = lib.singleton { address = "10.44.4.102"; prefixLength = 16; - }]; + }; }; }; @@ -36,7 +36,10 @@ programs.motd = { enable = true; - networkInterfaces = lib.lists.singleton "eno1"; - servicesToCheck = [ "caddy" "gotosocial" ]; + networkInterfaces = [ "eno1" ]; + servicesToCheck = [ + "caddy" + "gotosocial" + ]; }; } diff --git a/hosts/woodpecker/default.nix b/hosts/woodpecker/default.nix index 4f1dc2f..b049cab 100644 --- a/hosts/woodpecker/default.nix +++ b/hosts/woodpecker/default.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ lib, inputs, ... }: { system.stateVersion = "24.05"; @@ -20,10 +20,10 @@ defaultGateway.address = "10.44.0.1"; interfaces.enp42s0 = { useDHCP = false; - ipv4.addresses = [{ + ipv4.addresses = lib.singleton { address = "10.44.4.50"; prefixLength = 16; - }]; + }; }; }; @@ -34,6 +34,9 @@ systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; - binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ]; + binfmt.emulatedSystems = [ + "aarch64-linux" + "riscv64-linux" + ]; }; } -- cgit v1.2.3