mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
try to migrate to nix
This commit is contained in:
parent
f2f4ead62f
commit
94da1ce936
26 changed files with 830 additions and 181 deletions
56
nix/common.nix
Normal file
56
nix/common.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue