different codebases use different formatters. autofmt looks for project configuration to pick the correct formatter, allowing an editor to simply point to the script and have all ambiguities resolved. this commit overhauls the conform configuration to set up autofmt correctly, as well installing it with 'pkgs.autofmt' closes #6
21 lines
343 B
Nix
21 lines
343 B
Nix
# applies user settings for the system
|
|
{
|
|
config,
|
|
pkgs,
|
|
user,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
# Set your time zone.
|
|
time.timeZone = user.timeZone;
|
|
|
|
home-manager.users.${user.username}.home.sessionVariables = {
|
|
EDITOR = user.editor;
|
|
TERMINAL = user.term;
|
|
}
|
|
// lib.optionalAttrs (user ? "browser") {
|
|
BROWSER = user.browser;
|
|
};
|
|
|
|
}
|