summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-10 15:47:06 +0200
committerSoispha <soispha@vhack.eu>2023-07-19 15:54:02 +0200
commit96aea471ced9b223856ab34011b3bf3b320fb7d2 (patch)
treef62707e2ececa6dc858c77cae5553e2bd53cd7e3
parentChore(system/secrets): Add sils' public key (diff)
downloadnixos-server-96aea471ced9b223856ab34011b3bf3b320fb7d2.tar.gz
nixos-server-96aea471ced9b223856ab34011b3bf3b320fb7d2.zip
Feat(.editorconfig): Add the configuration for all files
This sets some formatting option based on the file. In comparison to
the vim lines, this should be supported by more editors.
Diffstat (limited to '')
-rw-r--r--.editorconfig16
-rw-r--r--flake.nix2
-rw-r--r--hosts/server1/configuration.nix2
-rw-r--r--system/disks/default.nix2
-rw-r--r--system/secrets/default.nix2
-rw-r--r--system/secrets/secrets.nix2
-rw-r--r--system/services/mail/default.nix2
-rw-r--r--system/services/nginx/default.nix2
-rw-r--r--system/services/nginx/hosts.nixbin989 -> 978 bytes
-rw-r--r--system/services/nix-sync/default.nix2
-rw-r--r--system/users/default.nix2
11 files changed, 25 insertions, 9 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..8cfc43a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,16 @@
+# EditorConfig is awesome: https://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+
+# Matches multiple files with brace expansion notation
+# Set default charset
+[*.{nix}]
+charset = utf-8
+indent_style = space
+indent_size = 2
diff --git a/flake.nix b/flake.nix
index 5485ed9..14caf97 100644
--- a/flake.nix
+++ b/flake.nix
@@ -115,5 +115,5 @@
     };
   };
 }
-# vim: ts=2
+
 
diff --git a/hosts/server1/configuration.nix b/hosts/server1/configuration.nix
index f444715..c29283a 100644
--- a/hosts/server1/configuration.nix
+++ b/hosts/server1/configuration.nix
@@ -16,5 +16,5 @@
 
   system.stateVersion = "22.11";
 }
-# vim: ts=2
+
 
diff --git a/system/disks/default.nix b/system/disks/default.nix
index 5453426..4044b2b 100644
--- a/system/disks/default.nix
+++ b/system/disks/default.nix
@@ -80,5 +80,5 @@ in {
     };
   };
 }
-# vim: ts=2
+
 
diff --git a/system/secrets/default.nix b/system/secrets/default.nix
index ac42c1c..3592a56 100644
--- a/system/secrets/default.nix
+++ b/system/secrets/default.nix
@@ -10,5 +10,5 @@
     };
   };
 }
-# vim: ts=2
+
 
diff --git a/system/secrets/secrets.nix b/system/secrets/secrets.nix
index 5070d38..7873165 100644
--- a/system/secrets/secrets.nix
+++ b/system/secrets/secrets.nix
@@ -10,5 +10,5 @@ in {
     server1
   ];
 }
-# vim: ts=2
+
 
diff --git a/system/services/mail/default.nix b/system/services/mail/default.nix
index 0640fc7..f12a331 100644
--- a/system/services/mail/default.nix
+++ b/system/services/mail/default.nix
@@ -39,5 +39,5 @@ in {
     }
     users;
 }
-# vim: ts=2
+
 
diff --git a/system/services/nginx/default.nix b/system/services/nginx/default.nix
index b9a0754..f5af497 100644
--- a/system/services/nginx/default.nix
+++ b/system/services/nginx/default.nix
@@ -17,5 +17,5 @@
     enable = true;
   };
 }
-# vim: ts=2
+
 
diff --git a/system/services/nginx/hosts.nix b/system/services/nginx/hosts.nix
index 03806c0..8db389f 100644
--- a/system/services/nginx/hosts.nix
+++ b/system/services/nginx/hosts.nix
Binary files differdiff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix
index 5c2ed80..2a13010 100644
--- a/system/services/nix-sync/default.nix
+++ b/system/services/nix-sync/default.nix
@@ -260,5 +260,5 @@ in {
       else lib.warnIf (cfg.group != "nix-sync") "The group (${cfg.group}) is not \"nix-sync\", thus you are responible for generating it.";
   };
 }
-# vim: ts=2
+
 
diff --git a/system/users/default.nix b/system/users/default.nix
index 7ea88c5..33144f4 100644
--- a/system/users/default.nix
+++ b/system/users/default.nix
@@ -51,5 +51,5 @@
     };
   };
 }
-# vim: ts=2
+