Skip to content

Commit bc83224

Browse files
Auto-format Nix files
1 parent 746d26b commit bc83224

File tree

2 files changed

+48
-20
lines changed

2 files changed

+48
-20
lines changed

hosts/itxserver/configuration.nix

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
{ config, lib, pkgs, ... }@args:
2-
let inherit (args) inputs;
3-
in {
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}@args:
7+
let
8+
inherit (args) inputs;
9+
in
10+
{
411
imports = [
512
# The hardware-dependent options
613
./hardware-configuration.nix
@@ -29,7 +36,10 @@ in {
2936
};
3037
};
3138

32-
nix.settings.experimental-features = [ "nix-command" "flakes" ];
39+
nix.settings.experimental-features = [
40+
"nix-command"
41+
"flakes"
42+
];
3343

3444
time.timeZone = "Europe/Berlin";
3545

@@ -39,10 +49,12 @@ in {
3949
zfsSupport = true;
4050
efiSupport = true;
4151
efiInstallAsRemovable = true;
42-
mirroredBoots = [{
43-
devices = [ "nodev" ];
44-
path = "/boot";
45-
}];
52+
mirroredBoots = [
53+
{
54+
devices = [ "nodev" ];
55+
path = "/boot";
56+
}
57+
];
4658
};
4759
zfs.extraPools = [ "zpool" ];
4860
};
@@ -56,16 +68,22 @@ in {
5668
};
5769
useDHCP = false;
5870
interfaces = {
59-
eno1.ipv4.addresses = [{
60-
address = "10.0.0.10";
61-
prefixLength = 24;
62-
}];
71+
eno1.ipv4.addresses = [
72+
{
73+
address = "10.0.0.10";
74+
prefixLength = 24;
75+
}
76+
];
6377
};
6478
defaultGateway = {
6579
address = "10.0.0.1";
6680
interface = "eno1";
6781
};
68-
nameservers = [ "1.1.1.1" "1.0.0.1" "100.100.100.100" ];
82+
nameservers = [
83+
"1.1.1.1"
84+
"1.0.0.1"
85+
"100.100.100.100"
86+
];
6987
firewall = {
7088
allowedTCPPorts = [
7189
8123
@@ -118,7 +136,9 @@ in {
118136
AllowUsers = [ "lukas" ];
119137
};
120138
};
121-
fail2ban = { enable = true; };
139+
fail2ban = {
140+
enable = true;
141+
};
122142
envfs.enable = true;
123143
tailscale.enable = true;
124144
syncthing = {
@@ -137,8 +157,7 @@ in {
137157
};
138158
devices = {
139159
"MacBook-Pro" = {
140-
id =
141-
"GZAKPGB-BBVIY5T-2D3EY22-YYMGT5L-R3MNHGX-GYWNRWR-TG4BUMW-BQMBBAU";
160+
id = "GZAKPGB-BBVIY5T-2D3EY22-YYMGT5L-R3MNHGX-GYWNRWR-TG4BUMW-BQMBBAU";
142161
};
143162
};
144163
folders = {

modules/containers/freshrss.nix

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
# Auto-generated using compose2nix v0.3.1. Edited.
2-
{ pkgs, lib, config, ... }@args:
3-
let inherit (args) inputs;
4-
in {
2+
{
3+
pkgs,
4+
lib,
5+
config,
6+
...
7+
}@args:
8+
let
9+
inherit (args) inputs;
10+
in
11+
{
512
imports = [ inputs.sops-nix.nixosModules.sops ];
613

714
# Secrets are managed via sops
@@ -79,7 +86,9 @@ in {
7986
# When started, this will automatically create all resources and start
8087
# the containers. When stopped, this will teardown all resources.
8188
systemd.targets."docker-compose-freshrss-root" = {
82-
unitConfig = { Description = "Root target generated by compose2nix."; };
89+
unitConfig = {
90+
Description = "Root target generated by compose2nix.";
91+
};
8392
wantedBy = [ "multi-user.target" ];
8493
};
8594
}

0 commit comments

Comments
 (0)