feat: change nix structure

This commit is contained in:
2025-08-30 12:11:32 +02:00
parent 6f228c93be
commit d5193fa2a3
8 changed files with 417 additions and 184 deletions

32
modules/apps.nix Normal file
View File

@ -0,0 +1,32 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
termdown
fastfetch
neovim
deno
pnpm
terraform
gh-copilot
gh
rcm
fnm
universal-ctags
ripgrep
pyenv
rustup
ngrok
marp-cli
discord
yarn
typescript
firefox
ffmpeg_6
warp-terminal
raycast
bitwarden-desktop
jetbrains-toolbox
jetbrains.datagrip
jetbrains.rider
jetbrains.webstorm
];
}

5
modules/config.nix Normal file
View File

@ -0,0 +1,5 @@
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowBroken = true;
nixpkgs.config.allowUnfree = true;
}

26
modules/dotfiles/git.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs, ... }: {
home-manager.users.louisgallet = { pkgs, ... }: {
programs.git = {
enable = true;
userName = "Louis Gallet";
userEmail = "me@louisgallet.fr";
signing = {
key = "9AD287ECD257A6B61ECD592CD4C61677B9CC4C9B";
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "master";
gpg.format = "openpgp";
gpg.program =
if pkgs.stdenv.isDarwin then "/opt/homebrew/bin/gpg"
else "${pkgs.gnupg}/bin/gpg";
filter.lfs = {
clean = "git-lfs clean -- %f";
smudge = "git-lfs smudge -- %f";
process = "git-lfs filter-process";
required = true;
};
};
};
};
}