From fb6ac408e1d7f5d01479f2c9659e03b732151e42 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Wed, 24 Dec 2025 06:47:56 +0100 Subject: [PATCH] format code --- homes/julian/features/neovim/default.nix | 17 ++++++++--------- hosts/common/global/nix.nix | 5 ++--- hosts/kardorf/default.nix | 7 +++---- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/homes/julian/features/neovim/default.nix b/homes/julian/features/neovim/default.nix index 1a4ec18..01999ea 100644 --- a/homes/julian/features/neovim/default.nix +++ b/homes/julian/features/neovim/default.nix @@ -3,9 +3,8 @@ pkgs, inputs, ... -}: -{ - imports = [ inputs.nixvim.homeModules.nixvim ]; +}: { + imports = [inputs.nixvim.homeModules.nixvim]; home.sessionVariables = { EDITOR = "nvim"; @@ -93,9 +92,9 @@ conform-nvim = { enable = true; settings.formatters_by_ft = with pkgs; { - lua = [ "stylua" ]; - python = [ "black" ]; - nix = [ "nixfmt" ]; + lua = ["stylua"]; + python = ["black"]; + nix = ["nixfmt"]; }; # extraOptions = { # default_format_opts.lsp_format = "fallback"; @@ -107,9 +106,9 @@ enable = true; autoEnableSources = true; settings.sources = [ - { name = "nvim_lsp"; } - { name = "path"; } - { name = "buffer"; } + {name = "nvim_lsp";} + {name = "path";} + {name = "buffer";} ]; settings.mapping = { "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; diff --git a/hosts/common/global/nix.nix b/hosts/common/global/nix.nix index 272d765..0fb3b3e 100644 --- a/hosts/common/global/nix.nix +++ b/hosts/common/global/nix.nix @@ -2,8 +2,7 @@ lib, outputs, ... -}: -{ +}: { # Apply overlays nixpkgs = { # TODO: apply this to hm and nixos without duplicate code @@ -36,7 +35,7 @@ }; nix.optimise = { automatic = true; - dates = [ "weekly" ]; # Optional; allows customizing optimisation schedule + dates = ["weekly"]; # Optional; allows customizing optimisation schedule }; programs.nix-ld.enable = true; diff --git a/hosts/kardorf/default.nix b/hosts/kardorf/default.nix index 58c348e..bad71b9 100644 --- a/hosts/kardorf/default.nix +++ b/hosts/kardorf/default.nix @@ -1,5 +1,4 @@ -{ pkgs, ... }: -{ +{pkgs, ...}: { imports = [ ./hardware-configuration.nix @@ -34,7 +33,7 @@ # Not using the drivers leads to way better results # services.xserver.videoDrivers = [ "nvidia" ]; - networking.networkmanager.insertNameservers = [ "192.168.3.252" ]; + networking.networkmanager.insertNameservers = ["192.168.3.252"]; programs.kdeconnect.enable = true; @@ -44,7 +43,7 @@ # Enable CUPS to print documents. services.printing.enable = true; services.printing.browsing = true; - services.printing.drivers = with pkgs; [ gutenprint ]; + services.printing.drivers = with pkgs; [gutenprint]; services.libinput.enable = true; }