nixos/roles/common.nix

57 lines
773 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2021-07-01 01:02:55 +01:00
2021-11-25 11:42:32 +00:00
{
2023-05-27 23:16:46 +01:00
boot.tmp = {
useTmpfs = true;
};
2021-12-08 15:18:39 +00:00
2021-07-01 02:23:08 +01:00
console = {
keyMap = "us";
2021-11-25 11:42:32 +00: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 = {
settings.auto-optimise-store = true;
2021-07-13 09:53:22 +01:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2021-11-25 11:42:32 +00:00
2021-07-01 05:06:23 +01:00
gc = {
2021-11-25 11:42:32 +00:00
automatic = true;
dates = "weekly";
2021-07-01 05:06:23 +01:00
persistent = true;
};
2021-07-01 01:02:55 +01:00
};
fonts = {
fontconfig.enable = true;
2023-12-02 17:41:15 +00:00
packages = with pkgs; [ cascadia-code victor-mono ];
};
2021-10-13 13:29:07 +01:00
environment.systemPackages = with pkgs; [
file
pciutils
bind
wget
git
curl
htop
glances
tcpdump
restic
2021-07-07 10:45:52 +01:00
tmux
parted
2021-07-13 09:53:22 +01:00
unzip
tree
2021-09-07 10:21:14 +01:00
smartmontools
2021-10-13 13:29:07 +01:00
nmap
ripgrep
2021-12-08 15:43:12 +00:00
jq
2023-05-27 23:16:46 +01:00
helix
2024-02-07 22:13:37 +00:00
poetry
2021-11-25 11:42:32 +00:00
];
2021-07-01 01:02:55 +01:00
}