From ce97b624e0db624bfdcb40e335d189ea0b5f2763 Mon Sep 17 00:00:00 2001
From: lilly <li@lly.sh>
Date: Mon, 10 Feb 2025 17:30:20 +0100
Subject: [PATCH] fix pre-commit config and run formatter

---
 .envrc                  | 1 +
 .pre-commit-config.yaml | 3 +--
 modules/base_system.nix | 7 +++++--
 systems/default.nix     | 2 +-
 systems/installer.nix   | 1 -
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/.envrc b/.envrc
index 3550a30..7162b83 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,2 @@
 use flake
+pre-commit install
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 20af30f..8f15c8e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -14,7 +14,6 @@ repos:
     hooks:
       - id: run-format
         name: run-format
-        language: syste
+        language: system
         types: [ text ]
         entry: "nix fmt"
-
diff --git a/modules/base_system.nix b/modules/base_system.nix
index adfa592..b27683b 100644
--- a/modules/base_system.nix
+++ b/modules/base_system.nix
@@ -23,7 +23,7 @@
     "virtio_blk"
   ];
   boot.initrd.kernelModules = [ ];
-  
+
   boot.kernelModules = [ "kvm-intel" ];
   boot.extraModulePackages = [ ];
   boot.loader.grub = {
@@ -58,7 +58,10 @@
                 type = "filesystem";
                 format = "ext4";
                 mountpoint = "/";
-                mountOptions = [ "defaults" "noatime" ];
+                mountOptions = [
+                  "defaults"
+                  "noatime"
+                ];
               };
             };
           };
diff --git a/systems/default.nix b/systems/default.nix
index 466ef17..c8273b4 100644
--- a/systems/default.nix
+++ b/systems/default.nix
@@ -1,7 +1,7 @@
 { flake }:
 let
   nixpkgs = flake.inputs.nixpkgs;
-  
+
   # utility function to create a new nixos configuration
   # call like `mkSystem "x86_64-linux" "<hostname>.eh22.intern"`
   mkSystem =
diff --git a/systems/installer.nix b/systems/installer.nix
index cae6e41..5837e6d 100644
--- a/systems/installer.nix
+++ b/systems/installer.nix
@@ -1,4 +1,3 @@
-
 {
   config,
   modulesPath,