config/modules/shared/user-system-settings.nix
chloe caruso 4b91b37f4a feat: "autofmt" code formatter
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
2025-08-17 20:40:58 -07:00

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;
};
}