Ran nix fmt against nixfmt-rfc-style

This commit is contained in:
William 2024-09-23 11:54:59 -03:00
parent 43e53f8fb2
commit 8bcd4fc6b8
62 changed files with 784 additions and 287 deletions

View file

@ -1,5 +1,8 @@
{ ... }:
{
imports = [ ./home.nix ./programs.nix ];
imports = [
./home.nix
./programs.nix
];
}

View file

@ -1,11 +1,18 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
home = {
username = "user";
homeDirectory = "/home/user";
stateVersion = "22.05";
sessionVariables = { EDITOR = "hx"; };
sessionVariables = {
EDITOR = "hx";
};
packages = with pkgs; [ nix-your-shell ];
};
}

View file

@ -1,4 +1,9 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
programs = {
@ -29,15 +34,20 @@
space = "file_picker";
w = ":w";
q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
esc = [
"collapse_selection"
"keep_primary_selection"
];
};
};
languages = {
language = [{
name = "nix";
auto-format = true;
formatter.command = "nixfmt";
}];
language = [
{
name = "nix";
auto-format = true;
formatter.command = "nixfmt";
}
];
};
};