From 866785ef47f959de372aaaea8ce879785db052ab Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 30 May 2024 15:21:44 +0200 Subject: [PATCH] style: format using treefmt --- flake.nix | 6 +--- hosts/tankstelle/configuration.nix | 7 ++--- hosts/tankstelle/forgejo-actions-runner.nix | 4 +-- hosts/tankstelle/hardware-configuration.nix | 32 +++++++++++---------- hosts/tankstelle/networking.nix | 5 +++- 5 files changed, 25 insertions(+), 29 deletions(-) diff --git a/flake.nix b/flake.nix index 44b34740..f66a4b7e 100644 --- a/flake.nix +++ b/flake.nix @@ -91,11 +91,7 @@ jq ]; }; - devShells.ci = pkgs.mkShell { - buildInputs = with pkgs; [ - nodejs - ]; - }; + devShells.ci = pkgs.mkShell { buildInputs = with pkgs; [ nodejs ]; }; }; flake = diff --git a/hosts/tankstelle/configuration.nix b/hosts/tankstelle/configuration.nix index c207fdb9..2b1a1778 100644 --- a/hosts/tankstelle/configuration.nix +++ b/hosts/tankstelle/configuration.nix @@ -5,15 +5,12 @@ ... }: { - imports = - [ - ./hardware-configuration.nix - ]; + imports = [ ./hardware-configuration.nix ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.binfmt.emulatedSystems = ["aarch64-linux"]; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; system.stateVersion = "23.11"; } diff --git a/hosts/tankstelle/forgejo-actions-runner.nix b/hosts/tankstelle/forgejo-actions-runner.nix index 3f7e0fe3..7ea8b86b 100644 --- a/hosts/tankstelle/forgejo-actions-runner.nix +++ b/hosts/tankstelle/forgejo-actions-runner.nix @@ -37,9 +37,7 @@ name = config.networking.hostName; url = "https://git.pub.solar"; tokenFile = config.age.secrets.tankstelle-forgejo-actions-runner-token.path; - labels = [ - "self-hosted:host://-self-hosted" - ]; + labels = [ "self-hosted:host://-self-hosted" ]; }; }; } diff --git a/hosts/tankstelle/hardware-configuration.nix b/hosts/tankstelle/hardware-configuration.nix index b1e302a5..ec9b465e 100644 --- a/hosts/tankstelle/hardware-configuration.nix +++ b/hosts/tankstelle/hardware-configuration.nix @@ -10,28 +10,30 @@ }: { - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.availableKernelModules = [ + "ahci" + "xhci_pci" + "virtio_pci" + "sr_mod" + "virtio_blk" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/17531ffc-46bd-4259-8287-2dea73804b5b"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/17531ffc-46bd-4259-8287-2dea73804b5b"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/AF98-AA5C"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/AF98-AA5C"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/7aee04b5-1ef9-43de-acb4-70ac1238b58a"; } - ]; + swapDevices = [ { device = "/dev/disk/by-uuid/7aee04b5-1ef9-43de-acb4-70ac1238b58a"; } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; diff --git a/hosts/tankstelle/networking.nix b/hosts/tankstelle/networking.nix index 83d60e13..2c8f7608 100644 --- a/hosts/tankstelle/networking.nix +++ b/hosts/tankstelle/networking.nix @@ -17,7 +17,10 @@ address = "2001:4d88:1ffa:26::1"; interface = "enp1s0"; }; - nameservers = [ "95.129.51.51" "80.244.244.244" ]; + nameservers = [ + "95.129.51.51" + "80.244.244.244" + ]; interfaces."enp1s0" = { ipv4.addresses = [ {