jungle/common/main.nix

69 lines
1.8 KiB
Nix
Raw Normal View History

2023-04-18 18:27:08 +02:00
{ config, pkgs, ... }:
{
imports = [
2023-04-18 18:30:02 +02:00
./boot.nix
2023-04-18 18:31:35 +02:00
./fs.nix
2023-04-18 18:38:08 +02:00
./hw.nix
2023-04-18 18:50:44 +02:00
./net.nix
./slurm.nix
2023-04-18 18:46:53 +02:00
./ssh.nix
2023-04-18 18:45:10 +02:00
./users.nix
2023-04-18 18:27:08 +02:00
];
environment.systemPackages = with pkgs; [
vim wget git htop tmux pciutils tcpdump ripgrep nix-index nixos-option
2023-05-22 13:50:34 +02:00
nix-diff ipmitool freeipmi ethtool lm_sensors ix
];
systemd.services."serial-getty@ttyS0" = {
enable = true;
wantedBy = [ "getty.target" ];
serviceConfig.Restart = "always";
};
2023-04-28 12:34:51 +02:00
# Increase limits
security.pam.loginLimits = [
{
domain = "*";
type = "-";
item = "memlock";
value = "1048576"; # 1 GiB of mem locked
}
];
time.timeZone = "Europe/Madrid";
i18n.defaultLocale = "en_DK.UTF-8";
environment.variables = {
EDITOR = "vim";
VISUAL = "vim";
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.sandbox = "relaxed";
nix.settings.trusted-users = [ "@wheel" ];
nix.gc.automatic = true;
nix.gc.dates = "weekly";
programs.zsh.enable = true;
programs.zsh.histSize = 100000;
2023-04-28 18:12:10 +02:00
programs.bash.promptInit = ''
PS1="\h\\$ "
'';
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
2023-04-26 17:36:36 +02:00
#system.copySystemConfiguration = true;
# 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. Its 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).
system.stateVersion = "22.11"; # Did you read the comment?
2023-04-18 18:27:08 +02:00
}