From d0a6abd2d89c48437ed20810322286ec4b80b1d4 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 27 Oct 2024 12:42:26 +0100 Subject: [PATCH] statix fix --- common/i18n.nix | 2 +- common/networking.nix | 2 +- home/vinzenz/zsh.nix | 3 +++ hosts/vinzenz-lpt2/nginx.nix | 2 +- modules/podman.nix | 2 +- modules/printing.nix | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/common/i18n.nix b/common/i18n.nix index ee498a9..2903648 100644 --- a/common/i18n.nix +++ b/common/i18n.nix @@ -1,4 +1,4 @@ -{ ... }: +_: { config = { time.timeZone = "Europe/Berlin"; diff --git a/common/networking.nix b/common/networking.nix index 05140c2..6bcfb50 100644 --- a/common/networking.nix +++ b/common/networking.nix @@ -1,4 +1,4 @@ -{ ... }: +_: { config = { services.openssh = { diff --git a/home/vinzenz/zsh.nix b/home/vinzenz/zsh.nix index 9b85c05..5aa3fcb 100644 --- a/home/vinzenz/zsh.nix +++ b/home/vinzenz/zsh.nix @@ -14,6 +14,9 @@ my-test = "sudo nixos-rebuild test"; my-direnvallow = "echo \"use nix\" > .envrc && direnv allow"; my-ip4 = "ip addr show | grep 192"; + deadnix = "nix run github:astro/deadnix -- "; + statix = "nix run git+https://git.peppe.rs/languages/statix -- "; + my-nix-fixup = "deadnix -e && statix fix"; }; history = { diff --git a/hosts/vinzenz-lpt2/nginx.nix b/hosts/vinzenz-lpt2/nginx.nix index 8c82c3f..76378f7 100644 --- a/hosts/vinzenz-lpt2/nginx.nix +++ b/hosts/vinzenz-lpt2/nginx.nix @@ -1,4 +1,4 @@ -{ ... }: +_: { services.nginx = { enable = true; diff --git a/modules/podman.nix b/modules/podman.nix index eb1914b..8d37dd6 100644 --- a/modules/podman.nix +++ b/modules/podman.nix @@ -1,4 +1,4 @@ -{ ... }: +_: { virtualisation = { containers.enable = true; diff --git a/modules/printing.nix b/modules/printing.nix index b198d6c..b7171ad 100644 --- a/modules/printing.nix +++ b/modules/printing.nix @@ -1,4 +1,4 @@ -{ ... }: +_: { config = { services = {