style: nix fmt

This commit is contained in:
Kat Inskip 2025-07-13 07:16:21 -07:00
parent a72a61f475
commit f63d899a25
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
13 changed files with 25 additions and 38 deletions

View file

@ -1,8 +1,4 @@
{ _: {
inputs,
system,
...
}: {
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
]; ];

View file

@ -1,7 +1,4 @@
{ {inputs, ...}:
inputs,
...
}:
inputs.flake-utils.lib.eachDefaultSystem (system: let inputs.flake-utils.lib.eachDefaultSystem (system: let
treefmtEval = inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} ./treefmt.nix; treefmtEval = inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} ./treefmt.nix;
in { in {

View file

@ -1,7 +1,4 @@
{ {pkgs, ...}: {
pkgs,
...
}: {
programs.niri.settings.spawn-at-startup = let programs.niri.settings.spawn-at-startup = let
import-gsettings = pkgs.writeShellScriptBin "import-gsettings" '' import-gsettings = pkgs.writeShellScriptBin "import-gsettings" ''
# usage: import-gsettings # usage: import-gsettings

View file

@ -1,7 +1,4 @@
{ {config, ...}: {
config,
...
}: {
catppuccin.cursors.enable = true; catppuccin.cursors.enable = true;
home.pointerCursor = { home.pointerCursor = {
dotIcons.enable = true; dotIcons.enable = true;

View file

@ -196,7 +196,8 @@ with lib; rec {
level ? 1, level ? 1,
}: let }: let
prefix = concatStringsSep "" (lib.genList (_x: " ") (level * 2)); prefix = concatStringsSep "" (lib.genList (_x: " ") (level * 2));
in lib.imap1 (i: v: "${ in
lib.imap1 (i: v: "${
if includesWrapper && (i == 1 || i == (lib.length list)) if includesWrapper && (i == 1 || i == (lib.length list))
then v then v
else "${prefix}${v}" else "${prefix}${v}"

View file

@ -1,7 +1,4 @@
{ {lib, ...}: let
lib,
...
}: let
inherit (lib.types) submodule loaOf; inherit (lib.types) submodule loaOf;
inherit (lib.modules) mkDefault mkAfter; inherit (lib.modules) mkDefault mkAfter;
inherit (lib.options) mkOption; inherit (lib.options) mkOption;

View file

@ -1,7 +1,4 @@
{ {pkgs, ...}: {
pkgs,
...
}: {
hardware.graphics = { hardware.graphics = {
enable32Bit = true; enable32Bit = true;
extraPackages32 = with pkgs; [ extraPackages32 = with pkgs; [

View file

@ -1,11 +1,16 @@
{pkgs, inputs, ...}: { {
pkgs,
inputs,
...
}: {
home-manager.users.kat.programs.weechat = { home-manager.users.kat.programs.weechat = {
plugins = { plugins = {
perl = { perl = {
enable = true; enable = true;
}; };
}; };
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts; with pkgs.weechatScripts; [ scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts;
with pkgs.weechatScripts; [
highmon highmon
parse_relayed_msg parse_relayed_msg
]; ];

View file

@ -15,7 +15,8 @@ in {
enable = true; enable = true;
}; };
}; };
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts; with pkgs.weechatScripts; [ scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts;
with pkgs.weechatScripts; [
colorize_nicks colorize_nicks
title title
weechat-go weechat-go

View file

@ -7,7 +7,6 @@
shells = import ./shells {inherit inputs tree lib std pkgs;}; shells = import ./shells {inherit inputs tree lib std pkgs;};
inherit (import ./pkgs.nix {inherit inputs tree overlay;}) pkgs; inherit (import ./pkgs.nix {inherit inputs tree overlay;}) pkgs;
formatting = import ./formatting.nix {inherit inputs pkgs;}; formatting = import ./formatting.nix {inherit inputs pkgs;};
wrappers = import ./wrappers {inherit inputs;};
inherit (std) set; inherit (std) set;
checks = set.map (_: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib; checks = set.map (_: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
in in