nixos/common.nix
Giulio De Pasquale 9a9b4c6cfa maxi update giupi
2021-07-04 00:43:52 +02:00

64 lines
1.0 KiB
Nix

{ pkgs, variables, ... }:
{
# Select internationalisation properties.
console = {
keyMap = "us";
font = "Lat2-Terminus16";
};
i18n.defaultLocale = "en_US.UTF-8";
nix = {
autoOptimiseStore = true;
nixPath = [
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
"nixos-config=/etc/nixos/hosts/${variables.hostname}/default.nix"
"/nix/var/nix/profiles/per-user/root/channels"
];
gc = {
automatic = true;
dates = "weekly";
persistent = true;
};
};
nixpkgs = {
config = {
allowUnfree = true;
};
};
environment.systemPackages = with pkgs; [
file
pciutils
bind
wget
git
curl
htop
glances
tcpdump
restic
binutils
neovim
home-manager
ripgrep
];
fileSystems."/tmp" = {
device = "tmpfs";
fsType = "tmpfs";
options = ["size=5G"];
};
fileSystems."/var/cache" = {
device = "tmpfs";
fsType = "tmpfs";
options = ["size=3G"];
};
}