nixos-config/hosts/shared/default.nix
2025-06-05 19:13:28 +00:00

66 lines
1.2 KiB
Nix

{
pkgs,
outputs,
inputs,
lib,
...
}:
{
environment.systemPackages = with pkgs; [
home-manager
neovim
git
tree
wget
];
programs.direnv = {
enable = true;
};
services.openssh = {
enable = true;
};
networking = {
firewall = {
allowedTCPPorts = [ 22 ];
enable = true;
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ALL = "en_US.UTF-8";
};
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
};
gc = {
automatic = true;
options = "--delete-older-than 5d";
};
optimise = {
automatic = true;
};
};
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
stateVersion = "24.05"; # Did you read the comment?
};
}