try to migrate to nix

This commit is contained in:
kp2pml30 2025-01-11 20:48:22 +04:00
parent f2f4ead62f
commit 94da1ce936
26 changed files with 830 additions and 181 deletions

56
nix/common.nix Normal file
View file

@ -0,0 +1,56 @@
{ pkgs
, ...
}:
{
system.stateVersion = "24.05";
users.mutableUsers = false;
nix.gc = {
automatic = true;
dates = "weekly";
};
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
curl
neovim
bash
git
zip unzip
xz
zstd
gnutar
diffutils
file
tree
gnused
gnugrep
stow
killall
gnupg
];
programs = {
neovim.enable = true;
neovim.defaultEditor = true;
git = {
enable = true;
lfs.enable = true;
config = {
init.defaultBranch = "main";
};
};
};
}