2021-07-01 01:02:55 +01:00
|
|
|
{ pkgs, variables, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Select internationalisation properties.
|
2021-07-01 02:23:08 +01:00
|
|
|
|
|
|
|
console = {
|
|
|
|
keyMap = "us";
|
2021-07-01 05:06:23 +01:00
|
|
|
font = "Lat2-Terminus16";
|
2021-07-01 01:02:55 +01:00
|
|
|
};
|
|
|
|
|
2021-07-01 02:23:08 +01:00
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
2021-07-01 01:02:55 +01:00
|
|
|
nix = {
|
|
|
|
autoOptimiseStore = true;
|
2021-07-01 11:26:21 +01:00
|
|
|
|
2021-07-01 05:06:23 +01:00
|
|
|
nixPath = [
|
2021-07-01 01:02:55 +01:00
|
|
|
"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"
|
|
|
|
];
|
2021-07-01 11:26:21 +01:00
|
|
|
|
2021-07-01 05:06:23 +01:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
persistent = true;
|
|
|
|
};
|
2021-07-01 01:02:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
};
|
2021-07-01 11:26:21 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
file
|
|
|
|
pciutils
|
|
|
|
bind
|
|
|
|
wget
|
|
|
|
git
|
|
|
|
curl
|
|
|
|
htop
|
|
|
|
glances
|
|
|
|
tcpdump
|
|
|
|
restic
|
|
|
|
binutils
|
|
|
|
neovim
|
|
|
|
home-manager
|
2021-07-03 23:43:52 +01:00
|
|
|
ripgrep
|
2021-07-07 10:45:52 +01:00
|
|
|
tmux
|
|
|
|
parted
|
2021-07-01 11:26:21 +01:00
|
|
|
];
|
2021-07-03 23:43:52 +01:00
|
|
|
|
|
|
|
fileSystems."/tmp" = {
|
|
|
|
device = "tmpfs";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = ["size=5G"];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/cache" = {
|
|
|
|
device = "tmpfs";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = ["size=3G"];
|
|
|
|
};
|
2021-07-01 01:02:55 +01:00
|
|
|
}
|