Skip to content

Commit

Permalink
style(treewide): Reformat with nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Aug 31, 2024
1 parent 764c4c7 commit 62a605b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
4 changes: 1 addition & 3 deletions home-config/config/applications/tty/emacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ in
libnotify
sqlite.dev
])
++ [
nixd
];
++ [ nixd ];

xdg.configFile."emacs" = {
source = "${self}/home-config/dotfiles/emacs.d/";
Expand Down
12 changes: 8 additions & 4 deletions nixos-config/hosts/yui/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{ pkgs, flake-inputs, config, lib, ... }:
{
pkgs,
flake-inputs,
config,
lib,
...
}:
{
imports = [ ./vaapi.nix ];

Expand Down Expand Up @@ -34,9 +40,7 @@
};

boot = {
kernelParams = [
"nvidia-drm.fbdev=1"
];
kernelParams = [ "nvidia-drm.fbdev=1" ];

extraModprobeConfig =
"options nvidia "
Expand Down
16 changes: 10 additions & 6 deletions pkgs/applications/emacs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ let
required-packages = builtins.fromJSON (builtins.readFile package-list) ++ [ "leaf" ];

custom-emacs = emacsPkgs.emacs.pkgs.withPackages (
epkgs: (map (package: builtins.getAttr package epkgs) required-packages) ++ [
(epkgs.treesit-grammars.with-grammars (grammars: with grammars; [
tree-sitter-bash
tree-sitter-typescript
tree-sitter-tsx
]))
epkgs:
(map (package: builtins.getAttr package epkgs) required-packages)
++ [
(epkgs.treesit-grammars.with-grammars (
grammars: with grammars; [
tree-sitter-bash
tree-sitter-typescript
tree-sitter-tsx
]
))
]
);
in
Expand Down
5 changes: 1 addition & 4 deletions pkgs/applications/emacs/eglot-x.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
{ sources, trivialBuild }:
trivialBuild {
inherit (sources.eglot-x) pname version src;
}
{ sources, trivialBuild }: trivialBuild { inherit (sources.eglot-x) pname version src; }

0 comments on commit 62a605b

Please sign in to comment.