improve programming experience for nix

This commit is contained in:
Noah Masur 2022-06-20 19:51:03 -04:00
parent d0b3be617c
commit 5d3fbd35c9
4 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,7 @@ darwin.lib.darwinSystem {
../../modules/darwin ../../modules/darwin
../../modules/applications/alacritty.nix ../../modules/applications/alacritty.nix
../../modules/applications/discord.nix ../../modules/applications/discord.nix
../../modules/programming/nix.nix
../../modules/programming/terraform.nix ../../modules/programming/terraform.nix
../../modules/programming/lua.nix ../../modules/programming/lua.nix
]; ];

View File

@ -0,0 +1,8 @@
{ config, pkgs, ... }: {
home-manager.users.${config.user}.home.packages = with pkgs;
[
nixfmt # Nix file formatter
];
}

View File

@ -20,6 +20,7 @@ in {
home-manager.users.root.programs.git = { home-manager.users.root.programs.git = {
enable = true; enable = true;
extraConfig.safe.directory = config.dotfilesPath; extraConfig.safe.directory = config.dotfilesPath;
ignores = [ ".direnv/**" ];
}; };
home-manager.users.${config.user} = { home-manager.users.${config.user} = {