Skip to content

Commit 3d886cf

Browse files
committed
style: update formatting standards
1 parent 7cefde3 commit 3d886cf

File tree

5 files changed

+16
-30
lines changed

5 files changed

+16
-30
lines changed

.editorconfig

-11
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ insert_final_newline = true
1111
trim_trailing_whitespace = true
1212
indent_style = space
1313

14-
[*.{yml,yaml}]
15-
indent_size = 2
16-
17-
[*.nix]
18-
# We deal with indendation trough nixpkgs-fmt as its much
19-
# more intelligent.
20-
indent_size = unset
21-
22-
[*.py]
23-
indent_size = 4
24-
2514
[*.{diff,patch}]
2615
end_of_line = unset
2716
insert_final_newline = unset

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88

99
# Ensure and download a common nix-direnv version to unify installs.
1010
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
11-
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
11+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
1212
fi
1313

1414
use flake

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This repository contains the infrastructure as code for Phenix, my personal infr
1717

1818
```bash
1919
$ nix develop
20-
...
20+
...
2121
$ nixos-rebuild switch --fast --use-remote-sudo --target-host [user]@[hostname] --flake .#host
2222
```
2323

@@ -27,7 +27,7 @@ Read [CONTRIBUTING.md](./CONTRIBUTING.md)
2727

2828
```bash
2929
$ nix fmt .
30-
...
30+
...
3131
$ nix flake check
3232
```
3333

flake.nix

+2-5
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,8 @@
128128
treefmt-nix.lib.mkWrapper pkgs {
129129
projectRootFile = "flake.nix";
130130
programs.alejandra.enable = true;
131-
settings.formatter.deadnix = {
132-
command = "${pkgs.deadnix}/bin/deadnix";
133-
options = ["--edit"];
134-
includes = ["*.nix"];
135-
};
131+
programs.deadnix.enable = true;
132+
programs.terraform.enable = true;
136133
});
137134

138135
# -- Development Shells --

terraform/main.tf

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ resource "desec_rrset" "byte_surf-nona_hosts-A" {
2727
domain = "byte.surf"
2828
subname = "nona.hosts"
2929
type = "A"
30-
records = ["89.58.34.244"]
3130
ttl = 3600
31+
records = ["89.58.34.244"]
3232
}
3333

3434
resource "desec_rrset" "byte_surf-nona_hosts-SSHFP" {
3535
domain = "byte.surf"
3636
subname = "nona.hosts"
3737
type = "SSHFP"
38+
ttl = 3600
3839
records = [
3940
"4 2 ea2c60748fafe3d40f35f2ac34e4187601ca042a5f83298422ba12229c3eb87b",
4041
"1 2 84d768f3a348146aa3ae6c195ae516522731ff2fc0e32bc254ac8e2b08f8078d"
4142
]
42-
ttl = 3600
4343
}
4444

4545
# Services
@@ -48,32 +48,32 @@ resource "desec_rrset" "byte_surf-cloud-CNAME" {
4848
domain = "byte.surf"
4949
subname = "cloud"
5050
type = "CNAME"
51-
records = ["nona.hosts.byte.surf."]
5251
ttl = 3600
52+
records = ["nona.hosts.byte.surf."]
5353
}
5454

5555
resource "desec_rrset" "byte_surf-mc-CNAME" {
5656
domain = "byte.surf"
5757
subname = "mc"
5858
type = "CNAME"
59-
records = ["nona.hosts.byte.surf."]
6059
ttl = 3600
60+
records = ["nona.hosts.byte.surf."]
6161
}
6262

6363
resource "desec_rrset" "byte_surf-read-CNAME" {
6464
domain = "byte.surf"
6565
subname = "read"
6666
type = "CNAME"
67-
records = ["nona.hosts.byte.surf."]
6867
ttl = 3600
68+
records = ["nona.hosts.byte.surf."]
6969
}
7070

7171
resource "desec_rrset" "byte_surf-watch-CNAME" {
7272
domain = "byte.surf"
7373
subname = "watch"
7474
type = "CNAME"
75-
records = ["nona.hosts.byte.surf."]
7675
ttl = 3600
76+
records = ["nona.hosts.byte.surf."]
7777
}
7878

7979
# Top level
@@ -82,8 +82,8 @@ resource "desec_rrset" "byte_surf--A" {
8282
domain = "byte.surf"
8383
subname = ""
8484
type = "A"
85-
records = ["89.58.34.244"]
8685
ttl = 3600
86+
records = ["89.58.34.244"]
8787
}
8888

8989
# TLS hardening
@@ -92,8 +92,8 @@ resource "desec_rrset" "byte_surf--CAA" {
9292
domain = "byte.surf"
9393
subname = ""
9494
type = "CAA"
95-
records = ["0 issue \"letsencrypt.org\""]
9695
ttl = 3600
96+
records = ["0 issue \"letsencrypt.org\""]
9797
}
9898

9999
# Email - Sendinblue
@@ -102,25 +102,25 @@ resource "desec_rrset" "byte_surf--TXT" {
102102
domain = "byte.surf"
103103
subname = ""
104104
type = "TXT"
105+
ttl = 3600
105106
records = [
106107
"v=spf1 include:spf.sendinblue.com mx -all",
107108
"sendinblue-code:deaab76cc107c5de8cad5f956450eb6b"
108109
]
109-
ttl = 3600
110110
}
111111

112112
resource "desec_rrset" "byte_surf-dmarc-TXT" {
113113
domain = "byte.surf"
114114
subname = "_dmarc"
115115
type = "TXT"
116-
records = ["v=DMARC1; p=reject;"]
117116
ttl = 3600
117+
records = ["v=DMARC1; p=reject;"]
118118
}
119119

120120
resource "desec_rrset" "byte_surf-mail_domainkey-TXT" {
121121
domain = "byte.surf"
122122
subname = "mail._domainkey"
123123
type = "TXT"
124-
records = ["k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeMVIzrCa3T14JsNY0IRv5/2V1/v2itlviLQBwXsa7shBD6TrBkswsFUToPyMRWC9tbR/5ey0nRBH0ZVxp+lsmTxid2Y2z+FApQ6ra2VsXfbJP3HE6wAO0YTVEJt1TmeczhEd2Jiz/fcabIISgXEdSpTYJhb0ct0VJRxcg4c8c7wIDAQAB"]
125124
ttl = 3600
125+
records = ["k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeMVIzrCa3T14JsNY0IRv5/2V1/v2itlviLQBwXsa7shBD6TrBkswsFUToPyMRWC9tbR/5ey0nRBH0ZVxp+lsmTxid2Y2z+FApQ6ra2VsXfbJP3HE6wAO0YTVEJt1TmeczhEd2Jiz/fcabIISgXEdSpTYJhb0ct0VJRxcg4c8c7wIDAQAB"]
126126
}

0 commit comments

Comments
 (0)