aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
committertdback <tyler@tdback.net>2025-01-16 19:57:13 -0500
commit88017f5a874478dd82f306a5df88c38a8d06fcb6 (patch)
tree8806c58c4f21bb6a56d8530df8a93b256d44b4f3 /hosts
parent01d012473d4311d4f4e5a0831d912bc4b8c61639 (diff)
fix: format flake with `nixfmt-rfc-style`
Diffstat (limited to 'hosts')
-rw-r--r--hosts/frigg/default.nix16
-rw-r--r--hosts/heimdall/default.nix11
-rw-r--r--hosts/odin/default.nix6
-rw-r--r--hosts/sparrow/default.nix5
-rw-r--r--hosts/thor/default.nix11
-rw-r--r--hosts/woodpecker/default.nix11
6 files changed, 39 insertions, 21 deletions
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"
+ ];
};
}